Skip to content

Commit 73162de

Browse files
authored
Hide navigation screen in site editor (#49043)
1 parent 1753c04 commit 73162de

File tree

1 file changed

+4
-1
lines changed
  • packages/edit-site/src/components/sidebar-navigation-screen-main

1 file changed

+4
-1
lines changed

packages/edit-site/src/components/sidebar-navigation-screen-main/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export default function SidebarNavigationScreenMain() {
3434
return navigationMenus?.length > 0;
3535
} );
3636

37+
const showNavigationScreen = process.env.IS_GUTENBERG_PLUGIN
38+
? hasNavigationMenus
39+
: false;
3740
return (
3841
<SidebarNavigationScreen
3942
isRoot
@@ -43,7 +46,7 @@ export default function SidebarNavigationScreenMain() {
4346
) }
4447
content={
4548
<ItemGroup>
46-
{ hasNavigationMenus && (
49+
{ showNavigationScreen && (
4750
<NavigatorButton
4851
as={ SidebarNavigationItem }
4952
path="/navigation"

0 commit comments

Comments
 (0)