diff --git a/assets/js/blocks/featured-items/featured-category/block.json b/assets/js/blocks/featured-items/featured-category/block.json index 1a965571649..8f2dbb33467 100644 --- a/assets/js/blocks/featured-items/featured-category/block.json +++ b/assets/js/blocks/featured-items/featured-category/block.json @@ -80,6 +80,7 @@ "default": 500 }, "linkText": { + "default": "Shop now", "type": "string" }, "categoryId": { diff --git a/assets/js/blocks/featured-items/featured-category/example.ts b/assets/js/blocks/featured-items/featured-category/example.ts index 58cbc6c5777..be5cb5f0046 100644 --- a/assets/js/blocks/featured-items/featured-category/example.ts +++ b/assets/js/blocks/featured-items/featured-category/example.ts @@ -8,6 +8,7 @@ type ExampleBlock = Block[ 'example' ] & { attributes: { categoryId: 'preview' | number; previewCategory: typeof previewCategories[ number ]; + editMode: false; }; }; @@ -15,5 +16,6 @@ export const example: ExampleBlock = { attributes: { categoryId: 'preview', previewCategory: previewCategories[ 0 ], + editMode: false, }, } as const; diff --git a/assets/js/blocks/featured-items/featured-product/example.ts b/assets/js/blocks/featured-items/featured-product/example.ts index daedefe31ba..f0c23a7e6c5 100644 --- a/assets/js/blocks/featured-items/featured-product/example.ts +++ b/assets/js/blocks/featured-items/featured-product/example.ts @@ -8,6 +8,7 @@ type ExampleBlock = Block[ 'example' ] & { attributes: { productId: 'preview' | number; previewProduct: typeof previewProducts[ number ]; + editMode: false; }; }; @@ -15,5 +16,6 @@ export const example: ExampleBlock = { attributes: { productId: 'preview', previewProduct: previewProducts[ 0 ], + editMode: false, }, } as const; diff --git a/assets/js/blocks/featured-items/register.tsx b/assets/js/blocks/featured-items/register.tsx index 0593f73b8b8..912cc26e38b 100644 --- a/assets/js/blocks/featured-items/register.tsx +++ b/assets/js/blocks/featured-items/register.tsx @@ -116,7 +116,7 @@ export function register( ...DEFAULT_SETTINGS, example: { ...DEFAULT_EXAMPLE, - example, + ...example, }, /** * Renders and manages the block.