From d784d11b6636833e8a66c1f0b612301bbe1d3882 Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Mon, 13 Mar 2023 16:12:29 +0200 Subject: [PATCH] Hide navigation screen in site editor --- .../src/components/sidebar-navigation-screen-main/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-main/index.js b/packages/edit-site/src/components/sidebar-navigation-screen-main/index.js index fa7aa217134dc..04faf480bb060 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-main/index.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-main/index.js @@ -34,6 +34,9 @@ export default function SidebarNavigationScreenMain() { return navigationMenus?.length > 0; } ); + const showNavigationScreen = process.env.IS_GUTENBERG_PLUGIN + ? hasNavigationMenus + : false; return ( - { hasNavigationMenus && ( + { showNavigationScreen && (