Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Commit

Permalink
fix: correct proptype for 'component' value in NavList
Browse files Browse the repository at this point in the history
note: there seems to be no consensus on what the right proptype would be
facebook/react#5143
but after looking in node modules, it seems that react-router itself uses func
:shrug:
  • Loading branch information
jsms90 committed Oct 26, 2018
1 parent 4f2316b commit dbeca87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/pages/StaticPages/index.js
Expand Up @@ -77,7 +77,7 @@ StaticPage.propTypes = {
PropTypes.shape({
label: PropTypes.string.isRequired,
link: PropTypes.string.isRequired,
component: PropTypes.object.isRequired,
component: PropTypes.func.isRequired,
}),
).isRequired,
}
Expand Down

0 comments on commit dbeca87

Please sign in to comment.