mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-30 18:16:48 +10:00
Improve Topbar prop types
This commit is contained in:
parent
a679c946eb
commit
2cc769e585
1 changed files with 1 additions and 3 deletions
|
|
@ -44,8 +44,6 @@ const TopbarComponent = props => {
|
|||
);
|
||||
};
|
||||
|
||||
TopbarComponent.defaultProps = { user: null };
|
||||
|
||||
const { bool, func, shape, arrayOf } = PropTypes;
|
||||
|
||||
TopbarComponent.propTypes = {
|
||||
|
|
@ -59,7 +57,7 @@ TopbarComponent.propTypes = {
|
|||
}).isRequired,
|
||||
|
||||
// from withFlattenedRoutes
|
||||
flattenedRoutes: arrayOf(propTypes.route),
|
||||
flattenedRoutes: arrayOf(propTypes.route).isRequired,
|
||||
};
|
||||
|
||||
const mapStateToProps = state => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue