mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
TopbarContainer and Topbar use correct proptype validation (global duck)
This commit is contained in:
parent
9288e37d86
commit
a9fcdd4875
2 changed files with 4 additions and 4 deletions
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue