Skip to content

Commit

Permalink
Mark the nested prop types with isRequired
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-dv committed Jul 13, 2017
1 parent e0422ff commit cabfee0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ function createHeaderDecoratorScope(parent) {

HeaderDecorator.propTypes = {
style: PropTypes.shape({
title: PropTypes.object,
base: PropTypes.object,
title: PropTypes.object.isRequired,
base: PropTypes.object.isRequired,
}).isRequired,
node: PropTypes.shape({
name: PropTypes.string,
name: PropTypes.string.isRequired,
}).isRequired,
};

Expand Down

0 comments on commit cabfee0

Please sign in to comment.