Use registerProductEditorBlockType for tag
This commit is contained in:
parent
271258a0c4
commit
9d492800f3
|
@ -1,13 +1,9 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
import { registerWooBlockType } from '@woocommerce/block-templates';
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import metadata from './block.json';
|
||||
import { Edit } from './edit';
|
||||
import { registerProductEditorBlockType } from '../../../utils';
|
||||
|
||||
const { name } = metadata;
|
||||
|
||||
|
@ -19,7 +15,7 @@ export const settings = {
|
|||
};
|
||||
|
||||
export const init = () =>
|
||||
registerWooBlockType( {
|
||||
registerProductEditorBlockType( {
|
||||
name,
|
||||
metadata: metadata as never,
|
||||
settings: settings as never,
|
||||
|
|
Loading…
Reference in New Issue