Improve Topbar prop types

This commit is contained in:
Kimmo Puputti 2017-04-28 14:14:24 +03:00
parent a679c946eb
commit 2cc769e585

View file

@ -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 => {