From 8f03782fe343e225e62d945ce66946fafbcb4fa4 Mon Sep 17 00:00:00 2001 From: Mythie Date: Tue, 19 Sep 2023 13:49:01 +0000 Subject: [PATCH] fix: update email template --- .../template-components/template-footer.tsx | 20 ++++++++++++------- packages/email/templates/forgot-password.tsx | 2 +- packages/email/templates/reset-password.tsx | 2 +- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/packages/email/template-components/template-footer.tsx b/packages/email/template-components/template-footer.tsx index ee395a1e9..7f93f0063 100644 --- a/packages/email/template-components/template-footer.tsx +++ b/packages/email/template-components/template-footer.tsx @@ -1,14 +1,20 @@ import { Link, Section, Text } from '@react-email/components'; -export const TemplateFooter = () => { +export type TemplateFooterProps = { + isDocument?: boolean; +}; + +export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => { return (
- - This document was sent using{' '} - - Documenso. - - + {isDocument && ( + + This document was sent using{' '} + + Documenso. + + + )} Documenso diff --git a/packages/email/templates/forgot-password.tsx b/packages/email/templates/forgot-password.tsx index 5f1db1afc..ab3db58f5 100644 --- a/packages/email/templates/forgot-password.tsx +++ b/packages/email/templates/forgot-password.tsx @@ -62,7 +62,7 @@ export const ForgotPasswordTemplate = ({
- +
diff --git a/packages/email/templates/reset-password.tsx b/packages/email/templates/reset-password.tsx index ce06acbd1..35881fe72 100644 --- a/packages/email/templates/reset-password.tsx +++ b/packages/email/templates/reset-password.tsx @@ -90,7 +90,7 @@ export const ResetPasswordTemplate = ({
- +