mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Navigation: hide sectionNav
when the dockedMegaMenu
feature toggle is enabled (#75026)
This commit is contained in:
parent
0557a38da1
commit
0c08163357
@ -4,6 +4,7 @@ import React, { PropsWithChildren } from 'react';
|
||||
|
||||
import { GrafanaTheme2, PageLayoutType } from '@grafana/data';
|
||||
import { useStyles2, LinkButton } from '@grafana/ui';
|
||||
import config from 'app/core/config';
|
||||
import { useGrafana } from 'app/core/context/GrafanaContext';
|
||||
import { CommandPalette } from 'app/features/commandPalette/CommandPalette';
|
||||
import { KioskMode } from 'app/types';
|
||||
@ -61,7 +62,9 @@ export function AppChrome({ children }: Props) {
|
||||
)}
|
||||
<main className={contentClass} id="pageContent">
|
||||
<div className={styles.panes}>
|
||||
{state.layout === PageLayoutType.Standard && state.sectionNav && <SectionNav model={state.sectionNav} />}
|
||||
{state.layout === PageLayoutType.Standard && state.sectionNav && !config.featureToggles.dockedMegaMenu && (
|
||||
<SectionNav model={state.sectionNav} />
|
||||
)}
|
||||
<div className={styles.pageContainer}>{children}</div>
|
||||
</div>
|
||||
</main>
|
||||
|
Loading…
Reference in New Issue
Block a user