also accept error false

This commit is contained in:
Ben Wheeler 2019-08-25 10:10:58 -04:00
parent 425675e760
commit 12631a6c64

View file

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