EmailVerificationPage and form use correct proptype validation (global duck)

This commit is contained in:
Vesa Luusua 2017-10-17 19:39:00 +03:00
parent ff69b99908
commit 4d9aaf1758
2 changed files with 6 additions and 6 deletions

View file

@ -94,13 +94,13 @@ EmailVerificationFormComponent.defaultProps = {
verificationError: null,
};
const { instanceOf, bool } = PropTypes;
const { bool } = PropTypes;
EmailVerificationFormComponent.propTypes = {
...formPropTypes,
inProgress: bool,
currentUser: propTypes.currentUser.isRequired,
verificationError: instanceOf(Error),
verificationError: propTypes.error,
};
const defaultFormName = 'EmailVerificationForm';

View file

@ -87,16 +87,16 @@ EmailVerificationPageComponent.defaultProps = {
verificationError: null,
};
const { bool, func, instanceOf, shape, string } = PropTypes;
const { bool, func, shape, string } = PropTypes;
EmailVerificationPageComponent.propTypes = {
authInfoError: instanceOf(Error),
authInfoError: propTypes.error,
currentUser: propTypes.currentUser,
logoutError: instanceOf(Error),
logoutError: propTypes.error,
scrollingDisabled: bool.isRequired,
submitVerification: func.isRequired,
emailVerificationInProgress: bool.isRequired,
verificationError: instanceOf(Error),
verificationError: propTypes.error,
// from withRouter
location: shape({