diff --git a/frontend/src/component/App.tsx b/frontend/src/component/App.tsx index f1ff13add3..f9d8b3c10c 100644 --- a/frontend/src/component/App.tsx +++ b/frontend/src/component/App.tsx @@ -23,6 +23,7 @@ import { InitialRedirect } from './InitialRedirect'; import { InternalBanners } from './banners/internalBanners/InternalBanners'; import { ExternalBanners } from './banners/externalBanners/ExternalBanners'; import { LicenseBanner } from './banners/internalBanners/LicenseBanner'; +import { Demo } from './demo/Demo'; const StyledContainer = styled('div')(() => ({ '& ul': { @@ -59,58 +60,62 @@ export const App = () => { condition={!hasFetchedAuth} show={} elseShow={ - <> - } - /> - - - - - - - {availableRoutes.map( - (route) => ( - - - - } - /> - ), + + <> + - } - /> - } - /> - + show={} + /> + + + + + + + {availableRoutes.map( + (route) => ( + + + + } + /> + ), + )} + + } + /> + } + /> + - + - - - + + + + } /> diff --git a/frontend/src/component/demo/DemoBanner/DemoBanner.tsx b/frontend/src/component/demo/DemoBanner/DemoBanner.tsx index 2f09b002eb..827c066b0b 100644 --- a/frontend/src/component/demo/DemoBanner/DemoBanner.tsx +++ b/frontend/src/component/demo/DemoBanner/DemoBanner.tsx @@ -3,7 +3,7 @@ import { Sticky } from 'component/common/Sticky/Sticky'; import { usePlausibleTracker } from 'hooks/usePlausibleTracker'; const StyledBanner = styled(Sticky)(({ theme }) => ({ - zIndex: theme.zIndex.sticky, + zIndex: theme.zIndex.sticky - 100, display: 'flex', gap: theme.spacing(1), justifyContent: 'center', diff --git a/frontend/src/component/layout/MainLayout/MainLayout.tsx b/frontend/src/component/layout/MainLayout/MainLayout.tsx index 88b6085f55..b884c9ae2f 100644 --- a/frontend/src/component/layout/MainLayout/MainLayout.tsx +++ b/frontend/src/component/layout/MainLayout/MainLayout.tsx @@ -14,7 +14,6 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit import { useChangeRequestsEnabled } from 'hooks/useChangeRequestsEnabled'; import { DraftBanner } from './DraftBanner/DraftBanner'; import { ThemeMode } from 'component/common/ThemeMode/ThemeMode'; -import { Demo } from 'component/demo/Demo'; import { useUiFlag } from 'hooks/useUiFlag'; interface IMainLayoutProps { @@ -111,55 +110,42 @@ export const MainLayout = forwardRef( return ( <> - - <> -
- - - - - } +
+ + + + } + /> + + + + + {children} + + + - - - - - {children} - - - - } - lightmode={ - - } + } + lightmode={ + - -