dummy header

This commit is contained in:
2023-02-27 11:25:42 +01:00
parent aa87b99364
commit 28aafb06aa

View File

@ -24,7 +24,8 @@ import
Header, Header,
MediaQuery, MediaQuery,
Burger Burger,
Stack
} from '@mantine/core'; } from '@mantine/core';
import { NotificationsProvider } from '@mantine/notifications'; import { NotificationsProvider } from '@mantine/notifications';
import { notificationAlert, notificationError, notificationSuccess } from './services/Notifications'; import { notificationAlert, notificationError, notificationSuccess } from './services/Notifications';
@ -77,10 +78,12 @@ const App: React.FC = () =>
<MantineProvider withNormalizeCSS withGlobalStyles> <MantineProvider withNormalizeCSS withGlobalStyles>
<NotificationsProvider position="top-center" > <NotificationsProvider position="top-center" >
<div className="App"> <div className="App">
<Stack>
<div className='h-11'></div> {/* dummy header */}
<BrowserRouter basename='/dog/'> <BrowserRouter basename='/dog/'>
<AppShell <AppShell
padding={0} padding={0}
fixed
navbarOffsetBreakpoint="sm" navbarOffsetBreakpoint="sm"
navbar={<DogNavbar hidden={!opened} hasUser={user ? true : false} onLogout={userLogout}/>} navbar={<DogNavbar hidden={!opened} hasUser={user ? true : false} onLogout={userLogout}/>}
@ -118,6 +121,7 @@ const App: React.FC = () =>
</Routes> </Routes>
</AppShell> </AppShell>
</BrowserRouter> </BrowserRouter>
</Stack>
</div> </div>
</NotificationsProvider> </NotificationsProvider>
</MantineProvider> </MantineProvider>