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

(cherry picked from commit b727c324b8)

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-04-21 14:23:10 +02:00
committed by GitHub
co-authored by Ashley Harrison
parent ad35db8636
commit 93b3d219a2
+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()} />