Use registerProductEditorBlockType for password
This commit is contained in:
parent
6596e9c05c
commit
c4bd765eb6
|
@ -1,13 +1,9 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
import { registerWooBlockType } from '@woocommerce/block-templates';
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import blockConfiguration from './block.json';
|
||||
import { Edit } from './edit';
|
||||
import { registerProductEditorBlockType } from '../../../utils';
|
||||
|
||||
const { name, ...metadata } = blockConfiguration;
|
||||
|
||||
|
@ -18,7 +14,7 @@ export const settings = {
|
|||
};
|
||||
|
||||
export function init() {
|
||||
return registerWooBlockType( {
|
||||
return registerProductEditorBlockType( {
|
||||
name,
|
||||
metadata: metadata as never,
|
||||
settings: settings as never,
|
||||
|
|
Loading…
Reference in New Issue