From 1b2672012711532c401154c45bde2b19226797b3 Mon Sep 17 00:00:00 2001 From: MSGhais Date: Wed, 7 Aug 2024 11:38:27 +0200 Subject: [PATCH] sidebar nav route --- apps/mobile/src/app/Router.tsx | 3 +++ apps/mobile/src/components/Skeleton/RootScreenContainer.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/mobile/src/app/Router.tsx b/apps/mobile/src/app/Router.tsx index 96a2388f..c79b8b9f 100644 --- a/apps/mobile/src/app/Router.tsx +++ b/apps/mobile/src/app/Router.tsx @@ -216,10 +216,13 @@ const RootNavigator: React.FC = () => { export const Router: React.FC = () => { const isWeb = Platform.OS === 'web'; const windowWidth = Dimensions.get('window').width; + const shouldShowSidebar = isWeb && windowWidth >= 1024; return ( + {shouldShowSidebar && } + ); diff --git a/apps/mobile/src/components/Skeleton/RootScreenContainer.tsx b/apps/mobile/src/components/Skeleton/RootScreenContainer.tsx index 76120c59..906cf17a 100644 --- a/apps/mobile/src/components/Skeleton/RootScreenContainer.tsx +++ b/apps/mobile/src/components/Skeleton/RootScreenContainer.tsx @@ -13,7 +13,7 @@ export const RootScreenContainer: React.FC = ({ style, children, ...p return ( - {shouldShowSidebar && } + {/* {shouldShowSidebar && } */} {children} );