From 721c63202ebe2c8e38a5d54594c32445c6150ab8 Mon Sep 17 00:00:00 2001 From: Copons Date: Mon, 17 May 2021 14:48:25 +0100 Subject: [PATCH] Remove the BlockNavigation component as it's not currently used anymore --- .../components/block-navigation/dropdown.js | 16 +++++++--- .../src/components/block-navigation/index.js | 31 ------------------- 2 files changed, 12 insertions(+), 35 deletions(-) delete mode 100644 packages/block-editor/src/components/block-navigation/index.js diff --git a/packages/block-editor/src/components/block-navigation/dropdown.js b/packages/block-editor/src/components/block-navigation/dropdown.js index bb3fd2eb453dd2..de7345280387ad 100644 --- a/packages/block-editor/src/components/block-navigation/dropdown.js +++ b/packages/block-editor/src/components/block-navigation/dropdown.js @@ -10,7 +10,7 @@ import { listView } from '@wordpress/icons'; /** * Internal dependencies */ -import BlockNavigation from './'; +import BlockNavigationTree from './tree'; import { store as blockEditorStore } from '../../store'; function BlockNavigationDropdownToggle( { @@ -60,9 +60,17 @@ function BlockNavigationDropdown( /> ) } renderContent={ () => ( - +
+

+ { __( 'List view' ) } +

+ + +
) } /> ); diff --git a/packages/block-editor/src/components/block-navigation/index.js b/packages/block-editor/src/components/block-navigation/index.js deleted file mode 100644 index 656c3f8bed3c2b..00000000000000 --- a/packages/block-editor/src/components/block-navigation/index.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * WordPress dependencies - */ -import { __ } from '@wordpress/i18n'; - -/** - * Internal dependencies - */ -import BlockNavigationTree from './tree'; - -const noop = () => {}; - -export default function BlockNavigation( { - onSelect = noop, - __experimentalFeatures, -} ) { - return ( -
-

- { __( 'List view' ) } -

- - -
- ); -}