From 43dd90a7d8ba5a369f38cc16c1e8ff409bc2c2ff Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Tue, 26 Mar 2024 08:17:31 -0400 Subject: [PATCH] Merge back and assign as a todo --- src/setup/Layout.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/setup/Layout.tsx b/src/setup/Layout.tsx index bbbd5d8f..5b2dbaac 100644 --- a/src/setup/Layout.tsx +++ b/src/setup/Layout.tsx @@ -39,6 +39,7 @@ export function Layout(props: { children: ReactNode }) { } }); + // Instead use isMobile like this `const { isMobile } = useIsMobile();` const mediaQuery = window.matchMedia("(max-width: 768px)"); // Adjust the max-width as per your needs setIsMobile(mediaQuery.matches);