Show heading by template select mode in the template select modal

[MAILPOET-6425]
This commit is contained in:
Rostislav Wolny
2025-01-16 14:51:43 +01:00
committed by Aschepikov
parent b7d6437b77
commit 0a02295c1e

View File

@ -123,7 +123,11 @@ export function SelectTemplateModal( {
return (
<Modal
title={ __( 'Start with an email preset', 'mailpoet' ) }
title={
templateSelectMode === 'new'
? __( 'Start with an email preset', 'mailpoet' )
: __( 'Select a template', 'mailpoet' )
}
onRequestClose={ () => {
recordEvent( 'template_select_modal_closed', {
templateSelectMode,