mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-08 13:42:00 -05:00
Add bool to disabled
prop type
fixes a warning that @paulkaplan noticed, thanks!
This commit is contained in:
parent
a38b1f6121
commit
128f9ca642
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue