mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 18:13:32 -06:00
reenable active state for home (#55566)
This commit is contained in:
parent
fedc1cdb11
commit
c65a8d3cab
@ -46,16 +46,13 @@ export const MegaMenu = React.memo<Props>(({ onClose, searchBarHidden }) => {
|
|||||||
location
|
location
|
||||||
).map((item) => enrichWithInteractionTracking(item, true));
|
).map((item) => enrichWithInteractionTracking(item, true));
|
||||||
|
|
||||||
const activeItem = getActiveItem(navTree, location.pathname);
|
const navItems = [homeItem, ...coreItems, ...pluginItems, ...configItems];
|
||||||
|
|
||||||
|
const activeItem = getActiveItem(navItems, location.pathname);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.menuWrapper}>
|
<div className={styles.menuWrapper}>
|
||||||
<NavBarMenu
|
<NavBarMenu activeItem={activeItem} navItems={navItems} onClose={onClose} searchBarHidden={searchBarHidden} />
|
||||||
activeItem={activeItem}
|
|
||||||
navItems={[homeItem, ...coreItems, ...pluginItems, ...configItems]}
|
|
||||||
onClose={onClose}
|
|
||||||
searchBarHidden={searchBarHidden}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user