Update Edit props type for section

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

View File

@ -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(

View File

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