Skip to content

Commit

Permalink
no need to render the header twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Athou committed Jan 18, 2024
1 parent 0946c02 commit 66c361e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commafeed-client/src/pages/app/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 66c361e

Please sign in to comment.