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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()} />