Skip to content

Commit

Permalink
Replace the deprecated BlockNavigationTree with BlockNavigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed May 17, 2021
1 parent 44a61d6 commit 67ecaca
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { listView } from '@wordpress/icons';
/**
* Internal dependencies
*/
import BlockNavigationTree from './tree';
import BlockNavigation from './';
import { store as blockEditorStore } from '../../store';

function BlockNavigationDropdownToggle( {
Expand Down Expand Up @@ -65,7 +65,7 @@ function BlockNavigationDropdown(
{ __( 'List view' ) }
</p>

<BlockNavigationTree
<BlockNavigation
showNestedBlocks
showOnlyCurrentHierarchy
__experimentalFeatures={ __experimentalFeatures }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import {
__experimentalBlockNavigationTree,
__experimentalBlockNavigation as BlockNavigation,
store as blockEditorStore,
} from '@wordpress/block-editor';
import { useSelect } from '@wordpress/data';
Expand All @@ -18,7 +18,7 @@ export default function BlockNavigationList( {
);

return (
<__experimentalBlockNavigationTree
<BlockNavigation
blocks={ blocks }
showAppender
showBlockMovers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import {
__experimentalBlockNavigationTree as BlockNavigationTree,
__experimentalBlockNavigation as BlockNavigation,
store as blockEditorStore,
} from '@wordpress/block-editor';
import { Button } from '@wordpress/components';
Expand Down Expand Up @@ -62,7 +62,7 @@ export default function ListViewSidebar() {
className="edit-post-editor__list-view-panel-content"
ref={ useMergeRefs( [ focusReturnRef, focusOnMountRef ] ) }
>
<BlockNavigationTree
<BlockNavigation
onSelect={ selectEditorBlock }
showNestedBlocks
__experimentalPersistentListViewFeatures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import {
__experimentalBlockNavigationTree as BlockNavigationTree,
__experimentalBlockNavigation as BlockNavigation,
store as blockEditorStore,
} from '@wordpress/block-editor';
import { Button } from '@wordpress/components';
Expand Down Expand Up @@ -62,7 +62,7 @@ export default function ListViewSidebar() {
className="edit-site-editor__list-view-panel-content"
ref={ useMergeRefs( [ focusReturnRef, focusOnMountRef ] ) }
>
<BlockNavigationTree
<BlockNavigation
onSelect={ selectEditorBlock }
showNestedBlocks
__experimentalPersistentListViewFeatures
Expand Down

0 comments on commit 67ecaca

Please sign in to comment.