diff --git a/assets/js/atomic/blocks/product-elements/sku/edit.tsx b/assets/js/atomic/blocks/product-elements/sku/edit.tsx index b259af2065f..db1e0ae340e 100644 --- a/assets/js/atomic/blocks/product-elements/sku/edit.tsx +++ b/assets/js/atomic/blocks/product-elements/sku/edit.tsx @@ -1,6 +1,7 @@ /** * External dependencies */ +import { useBlockProps } from '@wordpress/block-editor'; import type { BlockEditProps } from '@wordpress/blocks'; import EditProductLink from '@woocommerce/editor-components/edit-product-link'; import { ProductQueryContext as Context } from '@woocommerce/blocks/product-query/types'; @@ -17,6 +18,7 @@ const Edit = ( { setAttributes, context, }: BlockEditProps< Attributes > & { context: Context } ): JSX.Element => { + const blockProps = useBlockProps(); const blockAttrs = { ...attributes, ...context, @@ -29,10 +31,10 @@ const Edit = ( { ); return ( - <> +
- +
); };