fix(client): do not unmount Guide Layout on navigate
This commit is contained in:
@ -6,6 +6,7 @@ import { createStore } from './src/redux/createStore';
|
||||
import AppMountNotifier from './src/components/AppMountNotifier';
|
||||
import GuideNavContextProvider from './src/contexts/GuideNavigationContext';
|
||||
import DefaultLayout from './src/components/layouts/Default';
|
||||
import GuideLayout from './src/components/layouts/GuideLayout';
|
||||
|
||||
const store = createStore();
|
||||
|
||||
@ -34,6 +35,13 @@ export const wrapPageElement = ({ element, props }) => {
|
||||
</DefaultLayout>
|
||||
);
|
||||
}
|
||||
if ((/^\/guide(\/.*)*/).test(pathname)) {
|
||||
return (
|
||||
<DefaultLayout>
|
||||
<GuideLayout>{element}</GuideLayout>
|
||||
</DefaultLayout>
|
||||
);
|
||||
}
|
||||
return <DefaultLayout>{element}</DefaultLayout>;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user