fix(client): Remove redundant prop and allow navigationMenu to be und… (#36134)
This commit is contained in:
committed by
Valeriy
parent
17e112d25e
commit
1e1cbdfe06
@ -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>;
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user