diff --git a/packages/block-editor/src/components/block-settings-menu-controls/index.js b/packages/block-editor/src/components/block-settings-menu-controls/index.js index b7614b72c8018a..ec8fa46d4859d4 100644 --- a/packages/block-editor/src/components/block-settings-menu-controls/index.js +++ b/packages/block-editor/src/components/block-settings-menu-controls/index.js @@ -4,9 +4,12 @@ import { createSlotFill, MenuGroup, + MenuItem, __experimentalStyleProvider as StyleProvider, } from '@wordpress/components'; import { useSelect } from '@wordpress/data'; +import { pipe } from '@wordpress/compose'; +import { __ } from '@wordpress/i18n'; /** * Internal dependencies @@ -17,6 +20,7 @@ import { } from '../convert-to-group-buttons'; import { BlockLockMenuItem, useBlockLock } from '../block-lock'; import { store as blockEditorStore } from '../../store'; +import BlockModeToggle from '../block-settings-menu/block-mode-toggle'; const { Fill, Slot } = createSlotFill( 'BlockSettingsMenuControls' ); @@ -74,16 +78,32 @@ const BlockSettingsMenuControlsSlot = ( { return ( + { showConvertToGroupButton && ( + + ) } { showLockButton && ( ) } { fills } - { showConvertToGroupButton && ( - + { __( 'Move to' ) } + + ) } + { fillProps?.count === 1 && ( + ) } diff --git a/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js b/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js index 29b322129e43a9..eb35a0803cb1bc 100644 --- a/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js +++ b/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js @@ -24,7 +24,6 @@ import { pipe, useCopyToClipboard } from '@wordpress/compose'; */ import BlockActions from '../block-actions'; import BlockIcon from '../block-icon'; -import BlockModeToggle from './block-mode-toggle'; import BlockHTMLConvertButton from './block-html-convert-button'; import __unstableBlockSettingsMenuFirstItem from './block-settings-menu-first-item'; import BlockSettingsMenuControls from '../block-settings-menu-controls'; @@ -291,19 +290,6 @@ export function BlockSettingsDropdown( { ) } - { canMove && ! onlyBlock && ( - - { __( 'Move to' ) } - - ) } - { count === 1 && ( - - ) }