Use registerProductEditorBlockType for conditional

This commit is contained in:
Matt Sherman 2023-10-12 10:54:42 -04:00
parent f3eea29421
commit 57d1c4a0a7
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/**
* External dependencies
* Internal dependencies
*/
import { registerWooBlockType } from '@woocommerce/block-templates';
import { registerProductEditorBlockType } from '../../../utils';
/**
* Internal dependencies
@ -19,7 +19,7 @@ export const settings = {
};
export const init = () =>
registerWooBlockType( {
registerProductEditorBlockType( {
name,
metadata: metadata as never,
settings: settings as never,