From dbeca875ec07b4b04887b27910ae30f7a9eddbc1 Mon Sep 17 00:00:00 2001 From: Jennifer Spencer Date: Fri, 26 Oct 2018 12:55:49 +0100 Subject: [PATCH] fix: correct proptype for 'component' value in NavList note: there seems to be no consensus on what the right proptype would be https://github.com/facebook/react/issues/5143 but after looking in node modules, it seems that react-router itself uses func :shrug: --- app/components/pages/StaticPages/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/pages/StaticPages/index.js b/app/components/pages/StaticPages/index.js index 80074855..0eba5daa 100644 --- a/app/components/pages/StaticPages/index.js +++ b/app/components/pages/StaticPages/index.js @@ -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, }