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

@@ -39,8 +39,9 @@ Webhook settings: ${teamUrl}/settings/webhooks
}
protected render({ webhookName, teamUrl }: Props) {
const webhookSettingsLink = `${teamUrl}/settings/webhooks`;
return (
<EmailTemplate>
<EmailTemplate previewText={this.preview({ webhookName } as Props)}>
<Header />
<Body>
@@ -52,9 +53,7 @@ Webhook settings: ${teamUrl}/settings/webhooks
</p>
<EmptySpace height={10} />
<p>
<Button href={teamUrl + "/settings/webhooks"}>
Webhook settings
</Button>
<Button href={webhookSettingsLink}>Webhook settings</Button>
</p>
</Body>