Use registerProductEditorBlockType for checkbox

This commit is contained in:
Matt Sherman 2023-10-12 10:54:14 -04:00
parent 7448e78aa7
commit bf8ea9a016
1 changed files with 2 additions and 6 deletions

View File

@ -1,13 +1,9 @@
/**
* External dependencies
*/
import { registerWooBlockType } from '@woocommerce/block-templates';
/** /**
* Internal dependencies * Internal dependencies
*/ */
import blockConfiguration from './block.json'; import blockConfiguration from './block.json';
import { Edit } from './edit'; import { Edit } from './edit';
import { registerProductEditorBlockType } from '../../../utils';
const { name, ...metadata } = blockConfiguration; const { name, ...metadata } = blockConfiguration;
@ -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,