mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -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
|
||||
).map((item) => enrichWithInteractionTracking(item, true));
|
||||
|
||||
const activeItem = getActiveItem(navTree, location.pathname);
|
||||
const navItems = [homeItem, ...coreItems, ...pluginItems, ...configItems];
|
||||
|
||||
const activeItem = getActiveItem(navItems, location.pathname);
|
||||
|
||||
return (
|
||||
<div className={styles.menuWrapper}>
|
||||
<NavBarMenu
|
||||
activeItem={activeItem}
|
||||
navItems={[homeItem, ...coreItems, ...pluginItems, ...configItems]}
|
||||
onClose={onClose}
|
||||
searchBarHidden={searchBarHidden}
|
||||
/>
|
||||
<NavBarMenu activeItem={activeItem} navItems={navItems} onClose={onClose} searchBarHidden={searchBarHidden} />
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user