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 5970842 commit dccdde9
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions assets/js/templates/revert-button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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 { createInterpolateElement, useMemo } from '@wordpress/element';
import { useEntityRecord } from '@wordpress/core-data';
import { store as blockEditorStore } from '@wordpress/block-editor';

Expand Down Expand Up @@ -99,14 +99,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 dccdde9

Please sign in to comment.