Hide navbar behind ready check to prevent flicker of navbar on login (#47968)

This commit is contained in:
Ashley Harrison
2022-04-21 13:07:10 +01:00
committed by GitHub
parent 52768d87c4
commit b727c324b8
+1 -1
View File
@@ -95,7 +95,7 @@ export class AppWrapper extends React.Component<AppWrapperProps, AppWrapperState
<GlobalStyles />
<div className="grafana-app">
<Router history={locationService.getHistory()}>
{newNavigationEnabled ? <NavBarNext /> : <NavBar />}
{ready && <>{newNavigationEnabled ? <NavBarNext /> : <NavBar />}</>}
<main className="main-view">
{pageBanners.map((Banner, index) => (
<Banner key={index.toString()} />