Use valueToInsert in Personalization Tag modal
[MAILPOET-6376]
This commit is contained in:
committed by
Rostislav Wolný
parent
e4c80a09b6
commit
0e13133499
@ -32,13 +32,13 @@ const CategorySection = ( {
|
|||||||
>
|
>
|
||||||
<div className="mailpoet-personalization-tags-modal__item-text">
|
<div className="mailpoet-personalization-tags-modal__item-text">
|
||||||
<strong>{ item.name }</strong>
|
<strong>{ item.name }</strong>
|
||||||
{ item.token }
|
{ item.valueToInsert }
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
variant="link"
|
variant="link"
|
||||||
onClick={ () => {
|
onClick={ () => {
|
||||||
if ( onInsert ) {
|
if ( onInsert ) {
|
||||||
onInsert( item.token );
|
onInsert( item.valueToInsert );
|
||||||
}
|
}
|
||||||
} }
|
} }
|
||||||
>
|
>
|
||||||
|
@ -171,6 +171,7 @@ export type PersonalizationTag = {
|
|||||||
token: string;
|
token: string;
|
||||||
category: string;
|
category: string;
|
||||||
attributes: string[];
|
attributes: string[];
|
||||||
|
valueToInsert: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type State = {
|
export type State = {
|
||||||
|
Reference in New Issue
Block a user