Navigation: Move SectionNav to AppChrome (#64391)

* move section nav to app chrome

* unit tests

* Move SectionNav to AppChrome folder

* fix duplicate variable rendering

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
Ashley Harrison
2023-04-18 14:58:00 +01:00
committed by GitHub
co-authored by Torkel Ödegaard
parent 2cec402647
commit 0741f47876
15 changed files with 190 additions and 120 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export function ExplorePage(props: GrafanaRouteComponentProps<{}, ExploreQueryPa
useEffect(() => {
//This is needed for breadcrumbs and topnav.
//We should probably abstract this out at some point
chrome.update({ sectionNav: navModel.node });
chrome.update({ sectionNav: navModel });
}, [chrome, navModel]);
useEffect(() => {