Update Edit props type for section
This commit is contained in:
parent
de7bb63183
commit
d0f02fe0d4
|
@ -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(
|
||||
|
|
|
@ -22,6 +22,6 @@ export function init() {
|
|||
return registerWooBlockType( {
|
||||
name,
|
||||
metadata: metadata as never,
|
||||
settings,
|
||||
settings: settings as never,
|
||||
} );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue