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 }
} = props;
if (pathname === '/') {
return (
<DefaultLayout disableSettings={true} landingPage={true}>
{element}
</DefaultLayout>
);
return <DefaultLayout landingPage={true}>{element}</DefaultLayout>;
}
if (/^\/certification(\/.*)*/.test(pathname)) {
return <CertificationLayout>{element}</CertificationLayout>;