Skip to content

Commit

Permalink
Remove the block inspector button in edit-post and edit-site, but not…
Browse files Browse the repository at this point in the history
… for the widgets screen (#46709)

Co-authored-by: Ben Dwyer <ben@escruffian.com>
  • Loading branch information
scruffian and Ben Dwyer authored Jan 3, 2023
1 parent 960f157 commit 8837989
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions packages/edit-post/src/components/visual-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
__unstableUseTypewriter as useTypewriter,
__unstableUseClipboardHandler as useClipboardHandler,
__unstableUseTypingObserver as useTypingObserver,
__unstableBlockSettingsMenuFirstItem,
__experimentalUseResizeCanvas as useResizeCanvas,
__unstableEditorStyles as EditorStyles,
useSetting,
Expand All @@ -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( {
Expand Down Expand Up @@ -419,11 +417,6 @@ export default function VisualEditor( { styles } ) {
</MaybeIframe>
</motion.div>
</motion.div>
<__unstableBlockSettingsMenuFirstItem>
{ ( { onClose } ) => (
<BlockInspectorButton onClick={ onClose } />
) }
</__unstableBlockSettingsMenuFirstItem>
</BlockTools>
);
}
7 changes: 0 additions & 7 deletions packages/edit-site/src/components/block-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
BlockInspector,
BlockTools,
__unstableBlockToolbarLastItem,
__unstableBlockSettingsMenuFirstItem,
__unstableUseTypingObserver as useTypingObserver,
BlockEditorKeyboardShortcuts,
store as blockEditorStore,
Expand All @@ -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';
Expand Down Expand Up @@ -249,11 +247,6 @@ export default function BlockEditor( { setIsInserterOpen } ) {
/>
</EditorCanvas>
</ResizableEditor>
<__unstableBlockSettingsMenuFirstItem>
{ ( { onClose } ) => (
<BlockInspectorButton onClick={ onClose } />
) }
</__unstableBlockSettingsMenuFirstItem>
<__unstableBlockToolbarLastItem>
<__unstableBlockNameContext.Consumer>
{ ( blockName ) =>
Expand Down

0 comments on commit 8837989

Please sign in to comment.