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