fix: custom menu for guide
This commit is contained in:
committed by
Stuart Taylor
parent
44a2ce8796
commit
357b824033
@ -4,7 +4,7 @@ import { Provider } from 'react-redux';
|
||||
|
||||
import { createStore } from './src/redux/createStore';
|
||||
import AppMountNotifier from './src/components/AppMountNotifier';
|
||||
import GuideNavContextProvider from './src/contexts/GuideNavigationContext';
|
||||
|
||||
import {
|
||||
CertificationLayout,
|
||||
DefaultLayout,
|
||||
@ -16,9 +16,7 @@ const store = createStore();
|
||||
export const wrapRootElement = ({ element }) => {
|
||||
return (
|
||||
<Provider store={store}>
|
||||
<GuideNavContextProvider>
|
||||
<AppMountNotifier render={() => element} />
|
||||
</GuideNavContextProvider>
|
||||
<AppMountNotifier render={() => element} />
|
||||
</Provider>
|
||||
);
|
||||
};
|
||||
@ -43,7 +41,7 @@ export const wrapPageElement = ({ element, props }) => {
|
||||
}
|
||||
if (/^\/guide(\/.*)*/.test(pathname)) {
|
||||
return (
|
||||
<DefaultLayout>
|
||||
<DefaultLayout showMobileSidenav={true}>
|
||||
<GuideLayout>{element}</GuideLayout>
|
||||
</DefaultLayout>
|
||||
);
|
||||
|
Reference in New Issue
Block a user