docs: hide sidebar button on pages with no sidebar (#4158)

This commit is contained in:
Shahed Nasser
2023-05-23 17:31:03 +03:00
committed by GitHub
parent ddc90db530
commit 8b83bf94b6
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ export default function NavbarContent(): JSX.Element {
<>
{!mobileSidebar.disabled && <NavbarMobileSidebarToggle />}
<NavbarLogo />
{hideable && (
{hideable && sidebarContext?.hasSidebar && (
<NavbarActions
items={[
{