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 b3bbaec8fae04..53fef79227692 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,13 +19,12 @@ export default function NavbarMobileSidebarLayout({ return (
{header} -
-
{primaryMenu}
-
{secondaryMenu}
-
-
+
+ {secondaryMenuShown ? ( +
{secondaryMenu}
+ ) : ( +
{primaryMenu}
+ )} +
); }