From b56ced02c8f405313ca67ce0ee6e79c418ff44ab Mon Sep 17 00:00:00 2001 From: Matt Sherman Date: Wed, 27 Sep 2023 23:40:19 -0400 Subject: [PATCH] Update Edit props type for password --- packages/js/product-editor/src/blocks/password/edit.tsx | 4 ++-- packages/js/product-editor/src/blocks/password/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/js/product-editor/src/blocks/password/edit.tsx b/packages/js/product-editor/src/blocks/password/edit.tsx index 7fdcd717175..6f35b2cab50 100644 --- a/packages/js/product-editor/src/blocks/password/edit.tsx +++ b/packages/js/product-editor/src/blocks/password/edit.tsx @@ -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; diff --git a/packages/js/product-editor/src/blocks/password/index.ts b/packages/js/product-editor/src/blocks/password/index.ts index d384267be7e..d36ff2b8fc6 100644 --- a/packages/js/product-editor/src/blocks/password/index.ts +++ b/packages/js/product-editor/src/blocks/password/index.ts @@ -21,6 +21,6 @@ export function init() { return registerWooBlockType( { name, metadata: metadata as never, - settings, + settings: settings as never, } ); }