From 47d738117c4cb26479f56d1cc88f9e2113ff7afe Mon Sep 17 00:00:00 2001 From: George Hotelling Date: Tue, 22 Nov 2022 11:21:11 -0500 Subject: [PATCH] Update Convert Modal --- .../off-canvas-editor/block-edit-button.js | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/packages/block-editor/src/components/off-canvas-editor/block-edit-button.js b/packages/block-editor/src/components/off-canvas-editor/block-edit-button.js index 4d44bc658c74dd..5e34c0a83c7733 100644 --- a/packages/block-editor/src/components/off-canvas-editor/block-edit-button.js +++ b/packages/block-editor/src/components/off-canvas-editor/block-edit-button.js @@ -15,8 +15,6 @@ import { store as blockEditorStore } from '../../store'; /** * External dependencies */ -// import InspectorControls from '../../components/inspector-controls'; - // copied from packages/block-library/src/page-list/edit.js // We only show the edit option when page count is <= MAX_PAGE_COUNT @@ -69,10 +67,6 @@ const usePageData = () => { }; // copied from convert-to-links-modal.js -/** - * WordPress dependencies - */ - const convertSelectedBlockToNavigationLinks = ( { pages, clientId, replaceBlock, createBlock } ) => () => { @@ -141,18 +135,13 @@ const ConvertToLinksModal = ( { onClose, clientId, pages } ) => {

{ __( - 'To edit this navigation menu, convert it to single page links. This allows you to add, re-order, remove items, or edit their labels.' - ) } -

-

- { __( - "Note: if you add new pages to your site, you'll need to add them to your navigation menu." + 'This menu is automatically kept in sync with pages on your site. You can manage the menu yourself by clicking customize below.' ) }

@@ -169,7 +158,7 @@ const ConvertToLinksModal = ( { onClose, clientId, pages } ) => { createBlock: create, } ) } > - { __( 'Convert' ) } + { __( 'Customize' ) }