Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipe block: switch to strings for all block descriptions #41431

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Recipe Block: switch to strings for all block descriptions
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { getBlockIconProp } from '@automattic/jetpack-shared-extension-utils';
import { Fragment } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import metadata from '../block.json';
import attributes from './attributes';
Expand All @@ -12,11 +11,7 @@ export const name = 'recipe-details';

export const settings = {
title: __( 'Recipe Details', 'jetpack' ),
description: (
<Fragment>
<p>{ __( 'Recipe Details', 'jetpack' ) }</p>
</Fragment>
),
description: __( 'Recipe Details', 'jetpack' ),
keywords: [],
supports: {
align: [ 'left', 'right', 'center' ],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { getBlockIconProp } from '@automattic/jetpack-shared-extension-utils';
import { Fragment } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import metadata from '../block.json';
import edit from './edit';
Expand All @@ -9,11 +8,7 @@ export const name = 'recipe-hero';
export const title = __( 'Recipe Hero', 'jetpack' );
export const settings = {
title,
description: (
<Fragment>
<p>{ __( 'Image area for the recipe.', 'jetpack' ) }</p>
</Fragment>
),
description: __( 'Image area for the recipe.', 'jetpack' ),
keywords: [],
icon: getBlockIconProp( metadata ),
category: 'widgets',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { getBlockIconProp } from '@automattic/jetpack-shared-extension-utils';
import { Fragment } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import metadata from '../block.json';
import attributes from './attributes';
Expand All @@ -10,11 +9,7 @@ export const name = 'recipe-ingredient-item';
export const title = __( 'Recipe Ingredient Item', 'jetpack' );
export const settings = {
title,
description: (
<Fragment>
<p>{ __( 'A single ingredient associated with a recipe.', 'jetpack' ) }</p>
</Fragment>
),
description: __( 'A single ingredient associated with a recipe.', 'jetpack' ),
keywords: [],
icon: getBlockIconProp( metadata ),
category: 'widgets',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { getBlockIconProp } from '@automattic/jetpack-shared-extension-utils';
import { Fragment } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import metadata from '../block.json';
import attributes from './attributes';
Expand All @@ -12,11 +11,7 @@ export const name = 'recipe-ingredients-list';
export const title = __( 'Recipe Ingredients List', 'jetpack' );
export const settings = {
title,
description: (
<Fragment>
<p>{ __( 'Recipe ingredient list', 'jetpack' ) }</p>
</Fragment>
),
description: __( 'Recipe ingredient list', 'jetpack' ),
icon: getBlockIconProp( metadata ),
category: 'widgets',
keywords: [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { getBlockIconProp } from '@automattic/jetpack-shared-extension-utils';
import { Fragment } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import metadata from '../block.json';
import edit from './edit';
Expand All @@ -9,11 +8,7 @@ export const name = 'recipe-step';
export const title = __( 'Recipe Step', 'jetpack' );
export const settings = {
title,
description: (
<Fragment>
<p>{ __( 'A single recipe step.', 'jetpack' ) }</p>
</Fragment>
),
description: __( 'A single recipe step.', 'jetpack' ),
keywords: [],
icon: getBlockIconProp( metadata ),
category: 'widgets',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { getBlockIconProp } from '@automattic/jetpack-shared-extension-utils';
import { Fragment } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import metadata from '../block.json';
import attributes from './attributes';
Expand All @@ -11,11 +10,7 @@ export const name = 'recipe-steps';
export const title = __( 'Recipe Steps', 'jetpack' );
export const settings = {
title,
description: (
<Fragment>
<p>{ __( 'Step by step instructions for the recipe.', 'jetpack' ) }</p>
</Fragment>
),
description: __( 'Step by step instructions for the recipe.', 'jetpack' ),
keywords: [],
icon: getBlockIconProp( metadata ),
category: 'widgets',
Expand Down
Loading