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