-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1245 from dequelabs/remove-prop-types
feat(react): remove PropTypes from all react components
- Loading branch information
Showing
70 changed files
with
86 additions
and
736 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
import React from 'react'; | ||
import classNames from 'classnames'; | ||
import PropTypes from 'prop-types'; | ||
|
||
export type CardContentProps = React.HTMLAttributes<HTMLDivElement>; | ||
export type CardContentProps = React.HTMLAttributes<HTMLDivElement> & { | ||
className?: string; | ||
}; | ||
|
||
const CardContent = ({ className, ...other }: CardContentProps) => ( | ||
<div className={classNames('Card__content', className)} {...other} /> | ||
); | ||
|
||
CardContent.displayName = 'CardContent'; | ||
CardContent.propTypes = { | ||
className: PropTypes.string | ||
}; | ||
|
||
export default CardContent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import classNames from 'classnames'; | ||
|
||
export type CardFooterProps = React.HTMLAttributes<HTMLDivElement>; | ||
export type CardFooterProps = React.HTMLAttributes<HTMLDivElement> & { | ||
className?: string; | ||
}; | ||
|
||
const CardFooter = ({ className, ...other }: CardFooterProps) => ( | ||
<div className={classNames('Card__footer', className)} {...other} /> | ||
); | ||
|
||
CardFooter.displayName = 'CardFooter'; | ||
CardFooter.propTypes = { | ||
className: PropTypes.string | ||
}; | ||
|
||
export default CardFooter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import classNames from 'classnames'; | ||
|
||
export type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>; | ||
export type CardHeaderProps = React.HTMLAttributes<HTMLDivElement> & { | ||
className?: string; | ||
}; | ||
|
||
const CardHeader = ({ className, ...other }: CardHeaderProps) => ( | ||
<div className={classNames('Card__header', className)} {...other} /> | ||
); | ||
|
||
CardHeader.displayName = 'CardHeader'; | ||
CardHeader.propTypes = { | ||
className: PropTypes.string | ||
}; | ||
|
||
export default CardHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.