Use correct prop type for children

This commit is contained in:
Kimmo Puputti 2017-04-11 16:38:58 +03:00
parent a444e94827
commit 2a7cfbea4f

View file

@ -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,
};