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

pull/47008/head
Ashley Harrison 3 years ago committed by GitHub
parent 52768d87c4
commit b727c324b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/AppWrapper.tsx

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

Loading…
Cancel
Save