From 9f1d0f6345de23e55c9e0686e351e47e2ed2cd77 Mon Sep 17 00:00:00 2001 From: matushl Date: Sun, 15 Dec 2024 12:46:12 +0100 Subject: [PATCH] Let Main Menu be closed by default --- 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'))