Skip to content

Commit

Permalink
Unlock component at the file level
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed May 30, 2023
1 parent a1299ce commit 10655de
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const BLOCKS_WITH_LINK_UI_SUPPORT = [
'core/navigation-link',
'core/navigation-submenu',
];
const { PrivateListView } = unlock( blockEditorPrivateApis );

const MainContent = ( {
clientId,
Expand All @@ -40,8 +41,6 @@ const MainContent = ( {
isNavigationMenuMissing,
onCreateNew,
} ) => {
const { PrivateListView } = unlock( blockEditorPrivateApis );

const hasChildren = useSelect(
( select ) => {
return !! select( blockEditorStore ).getBlockCount( clientId );
Expand Down

0 comments on commit 10655de

Please sign in to comment.