Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
add bold
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed May 8, 2023
1 parent b0bf67d commit 4492c9f
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions assets/js/templates/revert-button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import { PluginTemplateSettingPanel } from '@wordpress/edit-site';
import { subscribe, select, useSelect, useDispatch } from '@wordpress/data';
import { BlockInstance, createBlock } from '@wordpress/blocks';
import { Button, PanelBody } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { useMemo } from '@wordpress/element';
import { __, sprintf } from '@wordpress/i18n';
import { createInterpolateElement, useMemo } from '@wordpress/element';
import { useEntityRecord } from '@wordpress/core-data';
import { store as blockEditorStore } from '@wordpress/block-editor';
import { escapeHTML } from '@wordpress/escape-html';

// @ts-expect-error: @wordpress/plugin is typed in the newer versions
// eslint-disable-next-line @woocommerce/dependency-group
Expand Down Expand Up @@ -99,14 +100,20 @@ const RevertClassicTemplateButton = () => {
) }
</Button>
<span>
The{ ' ' }
{ template?.record?.title?.rendered ??
{ createInterpolateElement(
__(
'Classic Template',
`The <strongText /> template doesn’t allow for reordering or customizing blocks, but might work better with your extensions`,
'woo-gutenberg-products-block'
) }{ ' ' }
doesn’t allow for reordering or customizing blocks,
but might work better with your extensions.
),
{
strongText: (
<strong>
{ template?.record?.title
?.rendered ?? '' }
</strong>
),
}
) }
</span>
</PanelBody>
</PluginTemplateSettingPanel>
Expand Down

0 comments on commit 4492c9f

Please sign in to comment.