diff --git a/packages/js/product-editor/src/blocks/section/edit.tsx b/packages/js/product-editor/src/blocks/section/edit.tsx index 3f18c455e4f..638f9a0851d 100644 --- a/packages/js/product-editor/src/blocks/section/edit.tsx +++ b/packages/js/product-editor/src/blocks/section/edit.tsx @@ -3,7 +3,6 @@ */ import classNames from 'classnames'; import { createElement } from '@wordpress/element'; -import type { BlockEditProps } from '@wordpress/blocks'; import { useWooBlockProps } from '@woocommerce/block-templates'; import { // @ts-expect-error no exported member. @@ -15,10 +14,11 @@ import { */ import { sanitizeHTML } from '../../utils/sanitize-html'; import { SectionBlockAttributes } from './types'; +import { ProductEditorBlockEditProps } from '../../types'; export function Edit( { attributes, -}: BlockEditProps< SectionBlockAttributes > ) { +}: ProductEditorBlockEditProps< SectionBlockAttributes > ) { const { description, title, blockGap } = attributes; const blockProps = useWooBlockProps( attributes ); const innerBlockProps = useInnerBlocksProps( diff --git a/packages/js/product-editor/src/blocks/section/index.ts b/packages/js/product-editor/src/blocks/section/index.ts index cd9e326744d..7829fccedb9 100644 --- a/packages/js/product-editor/src/blocks/section/index.ts +++ b/packages/js/product-editor/src/blocks/section/index.ts @@ -22,6 +22,6 @@ export function init() { return registerWooBlockType( { name, metadata: metadata as never, - settings, + settings: settings as never, } ); }