From 883798992515562e9437c84d0567b841a3931363 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Tue, 3 Jan 2023 14:41:52 +0000 Subject: [PATCH] Remove the block inspector button in edit-post and edit-site, but not for the widgets screen (#46709) Co-authored-by: Ben Dwyer --- packages/edit-post/src/components/visual-editor/index.js | 7 ------- packages/edit-site/src/components/block-editor/index.js | 7 ------- 2 files changed, 14 deletions(-) diff --git a/packages/edit-post/src/components/visual-editor/index.js b/packages/edit-post/src/components/visual-editor/index.js index 05ec36b06a114..c76cc8735aa53 100644 --- a/packages/edit-post/src/components/visual-editor/index.js +++ b/packages/edit-post/src/components/visual-editor/index.js @@ -20,7 +20,6 @@ import { __unstableUseTypewriter as useTypewriter, __unstableUseClipboardHandler as useClipboardHandler, __unstableUseTypingObserver as useTypingObserver, - __unstableBlockSettingsMenuFirstItem, __experimentalUseResizeCanvas as useResizeCanvas, __unstableEditorStyles as EditorStyles, useSetting, @@ -43,7 +42,6 @@ import { store as coreStore } from '@wordpress/core-data'; /** * Internal dependencies */ -import BlockInspectorButton from './block-inspector-button'; import { store as editPostStore } from '../../store'; function MaybeIframe( { @@ -419,11 +417,6 @@ export default function VisualEditor( { styles } ) { - <__unstableBlockSettingsMenuFirstItem> - { ( { onClose } ) => ( - - ) } - ); } diff --git a/packages/edit-site/src/components/block-editor/index.js b/packages/edit-site/src/components/block-editor/index.js index 5ef1702734aba..02000631d09af 100644 --- a/packages/edit-site/src/components/block-editor/index.js +++ b/packages/edit-site/src/components/block-editor/index.js @@ -20,7 +20,6 @@ import { BlockInspector, BlockTools, __unstableBlockToolbarLastItem, - __unstableBlockSettingsMenuFirstItem, __unstableUseTypingObserver as useTypingObserver, BlockEditorKeyboardShortcuts, store as blockEditorStore, @@ -43,7 +42,6 @@ import TemplatePartConverter from '../template-part-converter'; import NavigateToLink from '../navigate-to-link'; import { SidebarInspectorFill } from '../sidebar-edit-mode'; import { store as editSiteStore } from '../../store'; -import BlockInspectorButton from './block-inspector-button'; import BackButton from './back-button'; import ResizableEditor from './resizable-editor'; import EditorCanvas from './editor-canvas'; @@ -249,11 +247,6 @@ export default function BlockEditor( { setIsInserterOpen } ) { /> - <__unstableBlockSettingsMenuFirstItem> - { ( { onClose } ) => ( - - ) } - <__unstableBlockToolbarLastItem> <__unstableBlockNameContext.Consumer> { ( blockName ) =>