Skip to content

Commit

Permalink
remove prop drilling
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Apr 17, 2023
1 parent 57e691a commit f24e65d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/block-editor/src/components/list-view/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,8 @@ function ListViewBlock( {
blockTitle
);

const {
isTreeGridMounted,
expandedState,
expand,
collapse,
BlockSettingsMenu,
} = useListViewContext();
const { isTreeGridMounted, expand, collapse, BlockSettingsMenu } =
useListViewContext();

const hasSiblings = siblingBlockCount > 0;
const hasRenderedMovers = showBlockMovers && hasSiblings;
Expand Down Expand Up @@ -333,8 +328,6 @@ function ListViewBlock( {
} }
disableOpenOnArrowDown
__experimentalSelectBlock={ updateSelection }
expandedState={ expandedState }
expand={ expand }
/>
) }
</TreeGridCell>
Expand Down

0 comments on commit f24e65d

Please sign in to comment.