Skip to content

Commit

Permalink
Reusable Blocks: Unlock a private hook and a component at the file le…
Browse files Browse the repository at this point in the history
…vel (#55809)
  • Loading branch information
Mamaduka committed Nov 2, 2023
1 parent ec83e45 commit 02697e0
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -28,6 +28,10 @@ import { store as coreStore } from '@wordpress/core-data';
import { store } from '../../store';
import { unlock } from '../../lock-unlock';

const { useReusableBlocksRenameHint, ReusableBlocksRenameHint } = unlock(
blockEditorPrivateApis
);

/**
* Menu control to convert block(s) to reusable block.
*
Expand All @@ -42,9 +46,6 @@ export default function ReusableBlockConvertButton( {
rootClientId,
onClose,
} ) {
const { useReusableBlocksRenameHint, ReusableBlocksRenameHint } = unlock(
blockEditorPrivateApis
);
const showRenameHint = useReusableBlocksRenameHint();
const [ syncType, setSyncType ] = useState( undefined );
const [ isModalOpen, setIsModalOpen ] = useState( false );
Expand Down

0 comments on commit 02697e0

Please sign in to comment.