Continuing updating the reformatting of propTypes and set redux, intl functions to end of component

• Removing:
- the reformatting of propTypes and set redux, intl functions to end of component
This commit is contained in:
mgabdev
2020-08-17 19:57:35 -05:00
parent 46a0cbca7d
commit ddca693cfc
101 changed files with 2053 additions and 2140 deletions

View File

@@ -29,17 +29,7 @@ const ARIA_LEVELS = {
* @param {bool} [props.isCentered] - if text is centered within the element
* @param {string} [props.size='h1'] - the size of the heading
*/
export default class Heading extends React.PureComponent {
static propTypes = {
children: PropTypes.any,
isCentered: PropTypes.bool,
size: PropTypes.oneOf(Object.keys(SIZES)),
}
static defaultProps = {
size: SIZES.h1,
}
class Heading extends React.PureComponent {
render() {
const { children, size, isCentered } = this.props
@@ -79,4 +69,16 @@ export default class Heading extends React.PureComponent {
)
}
}
}
Heading.propTypes = {
children: PropTypes.any,
isCentered: PropTypes.bool,
size: PropTypes.oneOf(Object.keys(SIZES)),
}
Heading.defaultProps = {
size: SIZES.h1,
}
export default Heading