Go-To Actions with transactions emails (#5728)

* feat: go-to actions for emails

* fix: comment

* fix: tsc without previewText

* fix: goToAction

* fix: link to original template

* fix: final comments
This commit is contained in:
Apoorv Mishra
2023-08-23 18:43:52 +05:30
committed by GitHub
parent e3ba87dcb0
commit 53c6c5599a
16 changed files with 200 additions and 63 deletions

View File

@@ -47,8 +47,10 @@ Join now: ${teamUrl}
}
protected render({ teamName, actorName, actorEmail, teamUrl }: Props) {
const inviteLink = `${teamUrl}?ref=invite-email`;
return (
<EmailTemplate>
<EmailTemplate previewText={this.preview()}>
<Header />
<Body>
@@ -62,7 +64,7 @@ Join now: ${teamUrl}
</p>
<EmptySpace height={10} />
<p>
<Button href={`${teamUrl}?ref=invite-email`}>Join now</Button>
<Button href={inviteLink}>Join now</Button>
</p>
</Body>