From dccdde983b10773d02f34020046b1d908372e522 Mon Sep 17 00:00:00 2001 From: Luigi Date: Mon, 8 May 2023 18:49:45 +0200 Subject: [PATCH] add bold --- assets/js/templates/revert-button/index.tsx | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/assets/js/templates/revert-button/index.tsx b/assets/js/templates/revert-button/index.tsx index f68f117b22d..60cc2a0b272 100644 --- a/assets/js/templates/revert-button/index.tsx +++ b/assets/js/templates/revert-button/index.tsx @@ -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'; @@ -99,14 +99,20 @@ const RevertClassicTemplateButton = () => { ) } - The{ ' ' } - { template?.record?.title?.rendered ?? + { createInterpolateElement( __( - 'Classic Template', + `The 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: ( + + { template?.record?.title + ?.rendered ?? '' } + + ), + } + ) }