diff --git a/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx index 69682dfcad19f..773e40b3c338b 100644 --- a/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx +++ b/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx @@ -10,6 +10,7 @@ import { useIsLoggedIn, useIsUserLoading } from 'common' import { Accordion, Button, cn } from 'ui' import { ThemeToggle } from 'ui-patterns/ThemeToggle' +import { getCustomContent } from '~/lib/custom-content/getCustomContent' import type { DropdownMenuItem } from '../Navigation.types' import { MenuItem, useActiveMenuLabel } from './GlobalNavigationMenu' import { GLOBAL_MENU_ITEMS } from './NavigationMenu.constants' @@ -107,6 +108,8 @@ const GlobalMobileMenu = ({ open, setOpen }: Props) => { const isUserLoading = useIsUserLoading() const pathname = usePathname() + const { navigationLogo } = getCustomContent(['navigation:logo']) + // Close mobile menu on route change useEffect(() => { setOpen(false) @@ -129,7 +132,7 @@ const GlobalMobileMenu = ({ open, setOpen }: Props) => { { />