Update Edit props type for shipping-dimensions

This commit is contained in:
Matt Sherman 2023-09-27 23:41:27 -04:00
parent db1f257895
commit 2c0117183e
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,6 @@
* External dependencies
*/
import { useWooBlockProps } from '@woocommerce/block-templates';
import { BlockEditProps } from '@wordpress/blocks';
import {
OPTIONS_STORE_NAME,
Product,
@ -34,11 +33,12 @@ import {
ShippingDimensionsImage,
} from '../../components/shipping-dimensions-image';
import { useValidation } from '../../contexts/validation-context';
import { ProductEditorBlockEditProps } from '../../types';
export function Edit( {
attributes,
clientId,
}: BlockEditProps< ShippingDimensionsBlockAttributes > ) {
}: ProductEditorBlockEditProps< ShippingDimensionsBlockAttributes > ) {
const blockProps = useWooBlockProps( attributes );
const [ dimensions, setDimensions ] =

View File

@ -22,6 +22,6 @@ export function init() {
return registerWooBlockType( {
name,
metadata: metadata as never,
settings,
settings: settings as never,
} );
}