no need to render the header twice

This commit is contained in:
Athou
2024-01-18 09:39:53 +01:00
parent 0946c0248e
commit 66c361e6a6

View File

@@ -173,8 +173,8 @@ export default function Layout(props: LayoutProps) {
}}
padding={{ base: 6, [Constants.layout.mobileBreakpointName]: "md" }}
>
<AppShell.Header id={Constants.dom.headerId}>{header}</AppShell.Header>
<AppShell.Footer id={Constants.dom.footerId}>{header}</AppShell.Footer>
<AppShell.Header id={Constants.dom.headerId}>{!headerInFooter && header}</AppShell.Header>
<AppShell.Footer id={Constants.dom.footerId}>{headerInFooter && header}</AppShell.Footer>
<AppShell.Navbar id="sidebar" p={sidebarPadding}>
<AppShell.Section grow component={ScrollArea} mx="-sm" px="sm">
<Box className={classes.sidebarContent}>{props.sidebar}</Box>