Skip to content

Commit

Permalink
Remove changes to list-view-sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Apr 6, 2023
1 parent f46aa15 commit 3332b43
Showing 1 changed file with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
/**
* WordPress dependencies
*/
import {
privateApis as blockEditorPrivateApis,
store as blockEditorStore,
} from '@wordpress/block-editor';
import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
import { Button } from '@wordpress/components';
import {
useFocusOnMount,
useFocusReturn,
useInstanceId,
useMergeRefs,
} from '@wordpress/compose';
import { useDispatch, useSelect } from '@wordpress/data';
import { useDispatch } from '@wordpress/data';
import { __ } from '@wordpress/i18n';
import { closeSmall } from '@wordpress/icons';
import { ESCAPE } from '@wordpress/keycodes';
Expand All @@ -38,10 +35,6 @@ export default function ListViewSidebar() {
const instanceId = useInstanceId( ListViewSidebar );
const labelId = `edit-site-editor__list-view-panel-label-${ instanceId }`;
const { PrivateListView } = unlock( blockEditorPrivateApis );
const clientIdsTree = useSelect( ( select ) => {
const { __unstableGetClientIdsTree } = select( blockEditorStore );
return __unstableGetClientIdsTree();
} );
return (
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
<div
Expand All @@ -67,11 +60,7 @@ export default function ListViewSidebar() {
focusOnMountRef,
] ) }
>
<PrivateListView
rootClientId={
clientIdsTree[ 0 ].innerBlocks[ 0 ].clientId
}
/>
<PrivateListView />
</div>
</div>
);
Expand Down

0 comments on commit 3332b43

Please sign in to comment.