mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
also accept error false
This commit is contained in:
parent
425675e760
commit
12631a6c64
1 changed files with 2 additions and 2 deletions
|
@ -53,9 +53,9 @@ const FormikInput = ({
|
|||
|
||||
FormikInput.propTypes = {
|
||||
className: PropTypes.string,
|
||||
error: PropTypes.string,
|
||||
// error and toolTip can be false, in which case we ignore them
|
||||
error: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
||||
onSetRef: PropTypes.func,
|
||||
// toolTip can be false, in which case we ignore it
|
||||
toolTip: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
||||
type: PropTypes.string,
|
||||
validationClassName: PropTypes.string,
|
||||
|
|
Loading…
Reference in a new issue