diff --git a/src/components/Topbar/Topbar.js b/src/components/Topbar/Topbar.js index 07b84569..a1fabb8b 100644 --- a/src/components/Topbar/Topbar.js +++ b/src/components/Topbar/Topbar.js @@ -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({ diff --git a/src/containers/TopbarContainer/TopbarContainer.js b/src/containers/TopbarContainer/TopbarContainer.js index 033f6370..b7f738f9 100644 --- a/src/containers/TopbarContainer/TopbarContainer.js +++ b/src/containers/TopbarContainer/TopbarContainer.js @@ -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