fix(client): make top navigation menu replaceable (#35943)
* fix(client): Stop using react-responsive and use media queries to display menu * Change guide to show menu * DRYed out a bit * Restore main, top-right nav to guide * fix: Separate guide and top menu state * Update client/src/components/Header/index.js Co-Authored-By: Valeriy <ValeraS@users.noreply.github.com> * Update client/src/components/Header/index.js Co-Authored-By: Valeriy <ValeraS@users.noreply.github.com> * Update client/src/components/Header/index.js Co-Authored-By: Valeriy <ValeraS@users.noreply.github.com> * Update client/src/components/Header/index.js Co-Authored-By: Valeriy <ValeraS@users.noreply.github.com> * fix: Refactor menu button and links * feat(client): make top navigation menu replaceable * fix: Refactor nav menu logic out of Header * fix(client): use default nav menu in header and use landingPage props instead of disableSettings
This commit is contained in:
committed by
Valeriy
parent
02427ad982
commit
17e112d25e
@ -10,6 +10,7 @@ import {
|
||||
DefaultLayout,
|
||||
GuideLayout
|
||||
} from './src/components/layouts';
|
||||
import GuideNavMenu from './src/components/layouts/components/guide/NavMenu';
|
||||
|
||||
const store = createStore();
|
||||
|
||||
@ -41,7 +42,7 @@ export const wrapPageElement = ({ element, props }) => {
|
||||
}
|
||||
if (/^\/guide(\/.*)*/.test(pathname)) {
|
||||
return (
|
||||
<DefaultLayout disableMenuButtonBehavior={true} mediaBreakpoint='991px'>
|
||||
<DefaultLayout navigationMenu={<GuideNavMenu />}>
|
||||
<GuideLayout>{element}</GuideLayout>
|
||||
</DefaultLayout>
|
||||
);
|
||||
|
Reference in New Issue
Block a user