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;