From bab8a68ebf8c4c31f24047c17b0f5166c6fd6356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Hlav=C3=A1=C4=8Dik?= Date: Sun, 15 Dec 2024 13:50:50 +0100 Subject: [PATCH] Let Main Menu be closed by default (#546) --- src/components/PageLayout/MenuMain/MenuMain.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PageLayout/MenuMain/MenuMain.tsx b/src/components/PageLayout/MenuMain/MenuMain.tsx index 04c3c6ba..aa6b52a4 100644 --- a/src/components/PageLayout/MenuMain/MenuMain.tsx +++ b/src/components/PageLayout/MenuMain/MenuMain.tsx @@ -19,7 +19,7 @@ export const MenuMain: FC = () => { const {hasPermissions} = useHasPermissions() - const [isVisible, setIsVisible] = useState(true) + const [isVisible, setIsVisible] = useState(false) const toggleMenu = () => setIsVisible((currentIsVisible) => !currentIsVisible) const fullWidthMenu = useMediaQuery((theme) => theme.breakpoints.down('md'))