From 66c361e6a603fabbde863752dc29d7cd8baf538f Mon Sep 17 00:00:00 2001 From: Athou Date: Thu, 18 Jan 2024 09:39:53 +0100 Subject: [PATCH] no need to render the header twice --- commafeed-client/src/pages/app/Layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commafeed-client/src/pages/app/Layout.tsx b/commafeed-client/src/pages/app/Layout.tsx index 571e7797..72c96fd4 100644 --- a/commafeed-client/src/pages/app/Layout.tsx +++ b/commafeed-client/src/pages/app/Layout.tsx @@ -173,8 +173,8 @@ export default function Layout(props: LayoutProps) { }} padding={{ base: 6, [Constants.layout.mobileBreakpointName]: "md" }} > - {header} - {header} + {!headerInFooter && header} + {headerInFooter && header} {props.sidebar}