Skip to content

Commit

Permalink
Remove the BlockNavigation component as it's not currently used anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed May 17, 2021
1 parent d752758 commit 721c632
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 35 deletions.
16 changes: 12 additions & 4 deletions packages/block-editor/src/components/block-navigation/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( {
Expand Down Expand Up @@ -60,9 +60,17 @@ function BlockNavigationDropdown(
/>
) }
renderContent={ () => (
<BlockNavigation
__experimentalFeatures={ __experimentalFeatures }
/>
<div className="block-editor-block-navigation__container">
<p className="block-editor-block-navigation__label">
{ __( 'List view' ) }
</p>

<BlockNavigationTree
showNestedBlocks
showOnlyCurrentHierarchy
__experimentalFeatures={ __experimentalFeatures }
/>
</div>
) }
/>
);
Expand Down
31 changes: 0 additions & 31 deletions packages/block-editor/src/components/block-navigation/index.js

This file was deleted.

0 comments on commit 721c632

Please sign in to comment.