Skip to content

Commit

Permalink
removes the navigate button in link UI for the site editor
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Jan 27, 2023
1 parent a535560 commit d58f79e
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions packages/edit-site/src/components/block-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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';
Expand All @@ -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 } =
Expand Down Expand Up @@ -163,17 +161,6 @@ export default function BlockEditor() {
useSubRegistry={ false }
>
<TemplatePartConverter />
<__experimentalLinkControl.ViewerFill>
{ useCallback(
( fillProps ) => (
<NavigateToLink
{ ...fillProps }
onActivePageChange={ setPage }
/>
),
[]
) }
</__experimentalLinkControl.ViewerFill>
<SidebarInspectorFill>
<BlockInspector />
</SidebarInspectorFill>
Expand Down

0 comments on commit d58f79e

Please sign in to comment.