diff --git a/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Layout/index.tsx b/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Layout/index.tsx index b3bbaec8fae0..84ebde5e9cc6 100644 --- a/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Layout/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Layout/index.tsx @@ -19,12 +19,12 @@ export default function NavbarMobileSidebarLayout({ return (
{header} -
-
{primaryMenu}
-
{secondaryMenu}
+
+ {secondaryMenuShown ? ( +
{secondaryMenu}
+ ) : ( +
{primaryMenu}
+ )}
);