TopbarContainer and Topbar use correct proptype validation (global duck)

This commit is contained in:
Vesa Luusua 2017-10-17 19:48:55 +03:00
parent 9288e37d86
commit a9fcdd4875
2 changed files with 4 additions and 4 deletions

View file

@ -354,7 +354,7 @@ TopbarComponent.defaultProps = {
sendVerificationEmailError: null,
};
const { bool, func, instanceOf, number, shape, string } = PropTypes;
const { bool, func, number, shape, string } = PropTypes;
TopbarComponent.propTypes = {
className: string,
@ -373,7 +373,7 @@ TopbarComponent.propTypes = {
onManageDisableScrolling: func.isRequired,
onResendVerificationEmail: func.isRequired,
sendVerificationEmailInProgress: bool.isRequired,
sendVerificationEmailError: instanceOf(Error),
sendVerificationEmailError: propTypes.error,
// These are passed from Page to keep Topbar rendering aware of location changes
history: shape({

View file

@ -54,7 +54,7 @@ TopbarContainerComponent.defaultProps = {
sendVerificationEmailError: null,
};
const { bool, func, instanceOf, number, object, shape } = PropTypes;
const { bool, func, number, object, shape } = PropTypes;
TopbarContainerComponent.propTypes = {
authInProgress: bool.isRequired,
@ -66,7 +66,7 @@ TopbarContainerComponent.propTypes = {
onLogout: func.isRequired,
onManageDisableScrolling: func.isRequired,
sendVerificationEmailInProgress: bool.isRequired,
sendVerificationEmailError: instanceOf(Error),
sendVerificationEmailError: propTypes.error,
onResendVerificationEmail: func.isRequired,
// from withRouter