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