mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-31 02:26:50 +10:00
EmailVerificationPage and form use correct proptype validation (global duck)
This commit is contained in:
parent
ff69b99908
commit
4d9aaf1758
2 changed files with 6 additions and 6 deletions
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue