From 1d8651a177b742050ff0f6c2b80f0a712799afd8 Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Fri, 27 Jan 2023 14:09:56 +0200 Subject: [PATCH] removes the navigate button in link UI for the site editor (#47454) --- .../src/components/block-editor/index.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/packages/edit-site/src/components/block-editor/index.js b/packages/edit-site/src/components/block-editor/index.js index d5a7dc7f5730a..f16dc71e49461 100644 --- a/packages/edit-site/src/components/block-editor/index.js +++ b/packages/edit-site/src/components/block-editor/index.js @@ -7,11 +7,10 @@ import classnames from 'classnames'; * WordPress dependencies */ import { useSelect, useDispatch } from '@wordpress/data'; -import { useCallback, useMemo, useRef } from '@wordpress/element'; +import { useMemo, useRef } from '@wordpress/element'; import { useEntityBlockEditor, store as coreStore } from '@wordpress/core-data'; import { BlockList, - __experimentalLinkControl, BlockInspector, BlockTools, __unstableUseClipboardHandler as useClipboardHandler, @@ -32,7 +31,6 @@ import { ReusableBlocksMenuItems } from '@wordpress/reusable-blocks'; */ import inserterMediaCategories from './inserter-media-categories'; 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 BackButton from './back-button'; @@ -50,7 +48,7 @@ const LAYOUT = { }; export default function BlockEditor() { - const { setPage, setIsInserterOpened } = useDispatch( editSiteStore ); + const { setIsInserterOpened } = useDispatch( editSiteStore ); const { storedSettings, templateType, canvasMode } = useSelect( ( select ) => { const { getSettings, getEditedPostType, __unstableGetCanvasMode } = @@ -163,17 +161,6 @@ export default function BlockEditor() { useSubRegistry={ false } > - <__experimentalLinkControl.ViewerFill> - { useCallback( - ( fillProps ) => ( - - ), - [] - ) } -