From 8ac83aea78f4d51e5f9828493203806b3fa21e88 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:49:50 -0400 Subject: [PATCH] Handle navbar sizing serverside --- components/Navigation.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Navigation.tsx b/components/Navigation.tsx index e8bf9ef..f1da9fd 100644 --- a/components/Navigation.tsx +++ b/components/Navigation.tsx @@ -42,11 +42,12 @@ export default function (props: { email?: string; hide?: boolean; id?: string; + mobile?: string; permissions?: number; username?: string; }) { let data = { ...props }; - const isDesktop = useBreakpointValue({ base: false, lg: true }); + const isDesktop = props.mobile === "?0"; const { isOpen, onClose, onOpen } = useDisclosure(); return (