mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 18:26:34 +02:00
🐛 Fix escaped values in emails (#1368)
This commit is contained in:
parent
d05fff69bc
commit
302495d3b5
5 changed files with 19 additions and 1 deletions
|
@ -39,7 +39,6 @@ const FinalizeHostEmail = ({
|
||||||
ns: "emails",
|
ns: "emails",
|
||||||
defaultValue:
|
defaultValue:
|
||||||
"Final date booked! We've notified participants and sent them calendar invites.",
|
"Final date booked! We've notified participants and sent them calendar invites.",
|
||||||
title,
|
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<Heading>
|
<Heading>
|
||||||
|
@ -55,6 +54,7 @@ const FinalizeHostEmail = ({
|
||||||
i18nKey="finalizeHost_content"
|
i18nKey="finalizeHost_content"
|
||||||
ns="emails"
|
ns="emails"
|
||||||
values={{ title }}
|
values={{ title }}
|
||||||
|
shouldUnescape={true}
|
||||||
components={{
|
components={{
|
||||||
b: <strong />,
|
b: <strong />,
|
||||||
}}
|
}}
|
||||||
|
@ -126,6 +126,9 @@ FinalizeHostEmail.getSubject = (
|
||||||
defaultValue: "Date booked for {{title}}",
|
defaultValue: "Date booked for {{title}}",
|
||||||
title: props.title,
|
title: props.title,
|
||||||
ns: "emails",
|
ns: "emails",
|
||||||
|
interpolation: {
|
||||||
|
escapeValue: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ const FinalizeParticipantEmail = ({
|
||||||
ns="emails"
|
ns="emails"
|
||||||
defaults="<b>{{hostName}}</b> has booked <b>{{title}}</b> for the following date:"
|
defaults="<b>{{hostName}}</b> has booked <b>{{title}}</b> for the following date:"
|
||||||
values={{ hostName, title }}
|
values={{ hostName, title }}
|
||||||
|
shouldUnescape={true}
|
||||||
components={{
|
components={{
|
||||||
b: <strong />,
|
b: <strong />,
|
||||||
}}
|
}}
|
||||||
|
@ -117,6 +118,9 @@ FinalizeParticipantEmail.getSubject = (
|
||||||
defaultValue: "Date booked for {{title}}",
|
defaultValue: "Date booked for {{title}}",
|
||||||
title: props.title,
|
title: props.title,
|
||||||
ns: "emails",
|
ns: "emails",
|
||||||
|
interpolation: {
|
||||||
|
escapeValue: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@ const NewCommentEmail = ({
|
||||||
ns="emails"
|
ns="emails"
|
||||||
i18nKey="newComment_content"
|
i18nKey="newComment_content"
|
||||||
defaults="<b>{{authorName}}</b> has commented on <b>{{title}}</b>."
|
defaults="<b>{{authorName}}</b> has commented on <b>{{title}}</b>."
|
||||||
|
shouldUnescape={true}
|
||||||
components={{
|
components={{
|
||||||
b: <strong />,
|
b: <strong />,
|
||||||
}}
|
}}
|
||||||
|
@ -64,6 +65,9 @@ NewCommentEmail.getSubject = (
|
||||||
defaultValue: "{{authorName}} has commented on {{title}}",
|
defaultValue: "{{authorName}} has commented on {{title}}",
|
||||||
authorName: props.authorName,
|
authorName: props.authorName,
|
||||||
title: props.title,
|
title: props.title,
|
||||||
|
interpolation: {
|
||||||
|
escapeValue: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,9 @@ NewParticipantEmail.getSubject = (
|
||||||
name: props.participantName,
|
name: props.participantName,
|
||||||
title: props.title,
|
title: props.title,
|
||||||
ns: "emails",
|
ns: "emails",
|
||||||
|
interpolation: {
|
||||||
|
escapeValue: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,7 @@ export const NewPollEmail = ({
|
||||||
i18nKey="newPoll_content"
|
i18nKey="newPoll_content"
|
||||||
ns="emails"
|
ns="emails"
|
||||||
values={{ title }}
|
values={{ title }}
|
||||||
|
shouldUnescape={true}
|
||||||
components={{
|
components={{
|
||||||
b: <strong />,
|
b: <strong />,
|
||||||
}}
|
}}
|
||||||
|
@ -71,6 +72,9 @@ NewPollEmail.getSubject = (props: NewPollEmailProps, ctx: EmailContext) => {
|
||||||
return ctx.t("newPoll_subject", {
|
return ctx.t("newPoll_subject", {
|
||||||
defaultValue: "Let's find a date for {{title}}!",
|
defaultValue: "Let's find a date for {{title}}!",
|
||||||
title: props.title,
|
title: props.title,
|
||||||
|
interpolation: {
|
||||||
|
escapeValue: false,
|
||||||
|
},
|
||||||
ns: "emails",
|
ns: "emails",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue