From 1e1cbdfe06d020311d773b112c33d836b3dd5811 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Sun, 26 May 2019 20:28:40 +0100 Subject: [PATCH] =?UTF-8?q?fix(client):=20Remove=20redundant=20prop=20and?= =?UTF-8?q?=20allow=20navigationMenu=20to=20be=20und=E2=80=A6=20(#36134)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/gatsby-browser.js | 6 +----- client/src/components/layouts/Default.js | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/client/gatsby-browser.js b/client/gatsby-browser.js index 9c69ef5b9f..b7108a6f97 100644 --- a/client/gatsby-browser.js +++ b/client/gatsby-browser.js @@ -31,11 +31,7 @@ export const wrapPageElement = ({ element, props }) => { location: { pathname } } = props; if (pathname === '/') { - return ( - - {element} - - ); + return {element}; } if (/^\/certification(\/.*)*/.test(pathname)) { return {element}; diff --git a/client/src/components/layouts/Default.js b/client/src/components/layouts/Default.js index 86894edcce..a4ecd920b2 100644 --- a/client/src/components/layouts/Default.js +++ b/client/src/components/layouts/Default.js @@ -68,7 +68,7 @@ const propTypes = { isOnline: PropTypes.bool.isRequired, isSignedIn: PropTypes.bool, landingPage: PropTypes.bool, - navigationMenu: PropTypes.element.isRequired, + navigationMenu: PropTypes.element, onlineStatusChange: PropTypes.func.isRequired, removeFlashMessage: PropTypes.func.isRequired, showFooter: PropTypes.bool