Skip to content

Commit

Permalink
Navigation: Unlock private APIs outside of the component (#50509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored May 11, 2023
1 parent 9b40eda commit 1664d5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import useNavigationMenu from '../use-navigation-menu';

/* translators: %s: The name of a menu. */
const actionLabel = __( "Switch to '%s'" );
const { OffCanvasEditor, LeafMoreMenu } = unlock( blockEditorPrivateApis );

const MainContent = ( {
clientId,
Expand All @@ -33,7 +34,6 @@ const MainContent = ( {
isNavigationMenuMissing,
onCreateNew,
} ) => {
const { OffCanvasEditor, LeafMoreMenu } = unlock( blockEditorPrivateApis );
// Provide a hierarchy of clientIds for the given Navigation block (clientId).
// This is required else the list view will display the entire block tree.
const clientIdsTree = useSelect(
Expand Down

0 comments on commit 1664d5e

Please sign in to comment.