diff --git a/docs/next/src/components/Header.tsx b/docs/next/src/components/Header.tsx index dbc190eacc55e..2669856124951 100644 --- a/docs/next/src/components/Header.tsx +++ b/docs/next/src/components/Header.tsx @@ -8,7 +8,7 @@ import getConfig from 'next/config'; import { useRouter } from 'next/router'; type HeaderProps = { - onMobileToggleNavigationClick: () => void; + onMobileToggleSidebarClick: () => void; }; const Version: React.FC<{ name: string }> = ({ name }) => { @@ -22,7 +22,8 @@ const Version: React.FC<{ name: string }> = ({ name }) => { ); }; -const Header: React.FC = ({ onMobileToggleNavigationClick }) => { +const Header: React.FC = ({ onMobileToggleSidebarClick }) => { + const [isMobileHeaderOpen, setIsMobileHeaderOpen] = useState(false); const config = getConfig(); let version = 'latest'; @@ -38,9 +39,46 @@ const Header: React.FC = ({ onMobileToggleNavigationClick }) => { const isApiDocs = router.pathname.startsWith('/_apidocs'); return ( -