diff --git a/frontend/src/components/Header/Header.tsx b/frontend/src/components/Header/Header.tsx index 5c75f9580..ae4a124b6 100644 --- a/frontend/src/components/Header/Header.tsx +++ b/frontend/src/components/Header/Header.tsx @@ -1,3 +1,4 @@ +import { useRef } from 'react'; import { FormattedMessage } from 'react-intl'; import { routes } from 'services/routes'; import Image from 'next/image'; @@ -13,7 +14,8 @@ import { BurgerMenu } from './BurgerMenu'; import { useHeader } from './useHeader'; export const Header: React.FC = () => { - const { config, menuItems, intl } = useHeader(); + const menuNode = useRef(null); + const { config, menuItems, isDesktopMenu, intl } = useHeader(menuNode); /** * Disabled for now to handle the map on the search page */ @@ -38,8 +40,7 @@ export const Header: React.FC = () => { role="banner" id="header" > - -
+