fix(client): Remove redundant prop and allow navigationMenu to be und… (#36134)

This commit is contained in:
Oliver Eyton-Williams
2019-05-26 20:28:40 +01:00
committed by Valeriy
parent 17e112d25e
commit 1e1cbdfe06
2 changed files with 2 additions and 6 deletions

View File

@ -31,11 +31,7 @@ export const wrapPageElement = ({ element, props }) => {
location: { pathname } location: { pathname }
} = props; } = props;
if (pathname === '/') { if (pathname === '/') {
return ( return <DefaultLayout landingPage={true}>{element}</DefaultLayout>;
<DefaultLayout disableSettings={true} landingPage={true}>
{element}
</DefaultLayout>
);
} }
if (/^\/certification(\/.*)*/.test(pathname)) { if (/^\/certification(\/.*)*/.test(pathname)) {
return <CertificationLayout>{element}</CertificationLayout>; return <CertificationLayout>{element}</CertificationLayout>;

View File

@ -68,7 +68,7 @@ const propTypes = {
isOnline: PropTypes.bool.isRequired, isOnline: PropTypes.bool.isRequired,
isSignedIn: PropTypes.bool, isSignedIn: PropTypes.bool,
landingPage: PropTypes.bool, landingPage: PropTypes.bool,
navigationMenu: PropTypes.element.isRequired, navigationMenu: PropTypes.element,
onlineStatusChange: PropTypes.func.isRequired, onlineStatusChange: PropTypes.func.isRequired,
removeFlashMessage: PropTypes.func.isRequired, removeFlashMessage: PropTypes.func.isRequired,
showFooter: PropTypes.bool showFooter: PropTypes.bool