Add bool to disabled prop type

fixes a warning that @paulkaplan noticed, thanks!
This commit is contained in:
Matthew Taylor 2017-10-26 09:26:54 -04:00
parent a38b1f6121
commit 128f9ca642

View file

@ -43,7 +43,10 @@ const ButtonComponent = ({
ButtonComponent.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
disabled: PropTypes.string,
disabled: PropTypes.oneOfType([
PropTypes.string,
PropTypes.bool
]),
onClick: PropTypes.func.isRequired
};
export default ButtonComponent;