fix: custom menu for guide

This commit is contained in:
Ahmad Abdolsaheb
2019-02-20 15:41:33 +03:00
committed by Stuart Taylor
parent 44a2ce8796
commit 357b824033
8 changed files with 184 additions and 66 deletions

View File

@ -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>
);