Skip to content

Commit

Permalink
remove prop drilling
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian authored and getdave committed Mar 30, 2023
1 parent ef25cea commit 13cae3c
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 @@ -134,13 +134,8 @@ function ListViewBlock( {
)
: __( 'Options' );

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 @@ -346,8 +341,6 @@ function ListViewBlock( {
} }
disableOpenOnArrowDown
__experimentalSelectBlock={ updateSelection }
expandedState={ expandedState }
expand={ expand }
/>
) }
</TreeGridCell>
Expand Down

0 comments on commit 13cae3c

Please sign in to comment.