Skip to content

Commit

Permalink
Cover: Unlock private APIs outside of the component (#50686)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored May 17, 2023
1 parent 86dfd21 commit 83a33e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const RESIZABLE_BOX_ENABLE_OPTION = {
topLeft: false,
};

const { ResizableBoxPopover } = unlock( blockEditorPrivateApis );

export default function ResizableCoverPopover( {
className,
height,
Expand All @@ -37,7 +39,6 @@ export default function ResizableCoverPopover( {
width,
...props
} ) {
const { ResizableBoxPopover } = unlock( blockEditorPrivateApis );
const [ isResizing, setIsResizing ] = useState( false );
const dimensions = useMemo(
() => ( { height, minHeight, width } ),
Expand Down

0 comments on commit 83a33e7

Please sign in to comment.