diff --git a/packages/js/product-editor/src/blocks/sale-price/edit.tsx b/packages/js/product-editor/src/blocks/sale-price/edit.tsx index 27d9f064091..9019fd00383 100644 --- a/packages/js/product-editor/src/blocks/sale-price/edit.tsx +++ b/packages/js/product-editor/src/blocks/sale-price/edit.tsx @@ -4,7 +4,6 @@ import classNames from 'classnames'; import { useWooBlockProps } from '@woocommerce/block-templates'; import { Product } from '@woocommerce/data'; -import { BlockEditProps } from '@wordpress/blocks'; import { useInstanceId } from '@wordpress/compose'; import { useEntityProp } from '@wordpress/core-data'; import { createElement } from '@wordpress/element'; @@ -21,11 +20,12 @@ import { import { useValidation } from '../../contexts/validation-context'; import { useCurrencyInputProps } from '../../hooks/use-currency-input-props'; import { SalePriceBlockAttributes } from './types'; +import { ProductEditorBlockEditProps } from '../../types'; export function Edit( { attributes, clientId, -}: BlockEditProps< SalePriceBlockAttributes > ) { +}: ProductEditorBlockEditProps< SalePriceBlockAttributes > ) { const blockProps = useWooBlockProps( attributes ); const { label, help } = attributes; const [ regularPrice ] = useEntityProp< string >( diff --git a/packages/js/product-editor/src/blocks/sale-price/index.ts b/packages/js/product-editor/src/blocks/sale-price/index.ts index cd9e326744d..7829fccedb9 100644 --- a/packages/js/product-editor/src/blocks/sale-price/index.ts +++ b/packages/js/product-editor/src/blocks/sale-price/index.ts @@ -22,6 +22,6 @@ export function init() { return registerWooBlockType( { name, metadata: metadata as never, - settings, + settings: settings as never, } ); }