From 9022ab6020220dfeaf3f79c6234b25c3284e339d Mon Sep 17 00:00:00 2001 From: Max Kotlan Date: Mon, 13 Dec 2021 16:28:45 -0500 Subject: [PATCH] menu can close completely --- ui/component/sideNavigation/view.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/component/sideNavigation/view.jsx b/ui/component/sideNavigation/view.jsx index 88a81a47c..cc6c01a90 100644 --- a/ui/component/sideNavigation/view.jsx +++ b/ui/component/sideNavigation/view.jsx @@ -221,8 +221,8 @@ function SideNavigation(props: Props) { const isAbsolute = isOnFilePage || isMediumScreen; const isMobile = useIsMobile(); - const menuCanCloseCompletey = isOnFilePage || isMobile; - const hideMenuFromView = menuCanCloseCompletey && !sidebarOpen; + const menuCanCloseCompletely = isOnFilePage || isMobile; + const hideMenuFromView = menuCanCloseCompletely && !sidebarOpen; const [canDisposeMenu, setCanDisposeMenu] = React.useState(false); @@ -239,10 +239,10 @@ function SideNavigation(props: Props) { } }, [hideMenuFromView]); - const shouldRenderLargeMenuPushorAbsolute = menuCanCloseCompletey || sidebarOpen; + const shouldRenderLargeMenuPushorAbsolute = menuCanCloseCompletely || sidebarOpen; - const showMicroMenu = !sidebarOpen && !menuCanCloseCompletey; - const showPushMenu = sidebarOpen && !menuCanCloseCompletey; + const showMicroMenu = !sidebarOpen && !menuCanCloseCompletely; + const showPushMenu = sidebarOpen && !menuCanCloseCompletely; const showSubscriptionSection = shouldRenderLargeMenuPushorAbsolute && isPersonalized && subscriptions && subscriptions.length > 0;