Use valueToInsert in Personalization Tag modal

[MAILPOET-6376]
This commit is contained in:
Jan Lysý
2024-12-17 17:28:21 +01:00
committed by Rostislav Wolný
parent e4c80a09b6
commit 0e13133499
2 changed files with 3 additions and 2 deletions

View File

@ -32,13 +32,13 @@ const CategorySection = ( {
>
<div className="mailpoet-personalization-tags-modal__item-text">
<strong>{ item.name }</strong>
{ item.token }
{ item.valueToInsert }
</div>
<Button
variant="link"
onClick={ () => {
if ( onInsert ) {
onInsert( item.token );
onInsert( item.valueToInsert );
}
} }
>

View File

@ -171,6 +171,7 @@ export type PersonalizationTag = {
token: string;
category: string;
attributes: string[];
valueToInsert: string;
};
export type State = {