From e788e01c6d04726dbefb94886ddab318e1894630 Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Wed, 22 Nov 2023 15:02:45 +0200 Subject: [PATCH] sticky header in mobile size --- packages/app/src/Pages/Layout/index.tsx | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/packages/app/src/Pages/Layout/index.tsx b/packages/app/src/Pages/Layout/index.tsx index e1382465..08d0b8e4 100644 --- a/packages/app/src/Pages/Layout/index.tsx +++ b/packages/app/src/Pages/Layout/index.tsx @@ -56,9 +56,12 @@ export default function Index() { return (
+ {!shouldHideHeader &&
}
- +
+ +
@@ -72,18 +75,9 @@ export default function Index() { ); } -function MainContent({ shouldHideHeader }) { - return ( -
- {!shouldHideHeader &&
} - -
- ); -} - function Header() { return ( -
+