mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
Use correct prop type for children
This commit is contained in:
parent
a444e94827
commit
2a7cfbea4f
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ const Button = props => {
|
|||
return <button className={classes} {...rest}>{children}</button>;
|
||||
};
|
||||
|
||||
const { any, string } = PropTypes;
|
||||
const { node, string } = PropTypes;
|
||||
|
||||
Button.defaultProps = {
|
||||
children: null,
|
||||
|
|
@ -19,7 +19,7 @@ Button.defaultProps = {
|
|||
};
|
||||
|
||||
Button.propTypes = {
|
||||
children: any,
|
||||
children: node,
|
||||
className: string,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue