mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -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 = {
|
FormikInput.propTypes = {
|
||||||
className: PropTypes.string,
|
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,
|
onSetRef: PropTypes.func,
|
||||||
// toolTip can be false, in which case we ignore it
|
|
||||||
toolTip: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
toolTip: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
||||||
type: PropTypes.string,
|
type: PropTypes.string,
|
||||||
validationClassName: PropTypes.string,
|
validationClassName: PropTypes.string,
|
||||||
|
|
Loading…
Reference in a new issue