mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 03:43:28 +10:00
ProfilePage uses correct proptype validation (global duck)
This commit is contained in:
parent
1d0a928d2d
commit
54e2a9a44e
1 changed files with 4 additions and 3 deletions
|
|
@ -2,6 +2,7 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import * as propTypes from '../../util/propTypes';
|
||||
import { isScrollingDisabled } from '../../ducks/UI.duck';
|
||||
import { Page } from '../../components';
|
||||
import { TopbarContainer } from '../../containers';
|
||||
|
|
@ -26,11 +27,11 @@ ProfilePageComponent.defaultProps = {
|
|||
logoutError: null,
|
||||
};
|
||||
|
||||
const { bool, instanceOf, shape, string } = PropTypes;
|
||||
const { bool, shape, string } = PropTypes;
|
||||
|
||||
ProfilePageComponent.propTypes = {
|
||||
authInfoError: instanceOf(Error),
|
||||
logoutError: instanceOf(Error),
|
||||
authInfoError: propTypes.error,
|
||||
logoutError: propTypes.error,
|
||||
params: shape({ displayName: string.isRequired }).isRequired,
|
||||
scrollingDisabled: bool.isRequired,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue