Update Edit props type for password

This commit is contained in:
Matt Sherman 2023-09-27 23:40:19 -04:00
parent 33e350d3d2
commit b56ced02c8
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,6 @@
/**
* External dependencies
*/
import { BlockEditProps } from '@wordpress/blocks';
import { useInstanceId } from '@wordpress/compose';
import { useEntityProp } from '@wordpress/core-data';
import { createElement, useState } from '@wordpress/element';
@ -19,10 +18,11 @@ import {
*/
import { RequirePasswordBlockAttributes } from './types';
import { ProductEditorBlockEditProps } from '../../types';
export function Edit( {
attributes,
}: BlockEditProps< RequirePasswordBlockAttributes > ) {
}: ProductEditorBlockEditProps< RequirePasswordBlockAttributes > ) {
const blockProps = useWooBlockProps( attributes );
const { label } = attributes;

View File

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