Update Edit props type for catalog-visibility

This commit is contained in:
Matt Sherman 2023-09-27 23:38:38 -04:00
parent ad2e50fb1c
commit 857eb39b11
2 changed files with 3 additions and 4 deletions

View File

@ -11,12 +11,11 @@ import { Product } from '@woocommerce/data';
* Internal dependencies
*/
import { CatalogVisibilityBlockAttributes } from './types';
import { ProductEditorBlockEditProps } from '../../types';
export function Edit( {
attributes,
}: {
attributes: CatalogVisibilityBlockAttributes;
} ) {
}: ProductEditorBlockEditProps< CatalogVisibilityBlockAttributes > ) {
const { label, visibility } = attributes;
const blockProps = useWooBlockProps( attributes );

View File

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