fix: update email template

This commit is contained in:
Mythie
2023-09-19 13:49:01 +00:00
parent 6e791b6e91
commit 8f03782fe3
3 changed files with 15 additions and 9 deletions

View File

@ -1,14 +1,20 @@
import { Link, Section, Text } from '@react-email/components'; import { Link, Section, Text } from '@react-email/components';
export const TemplateFooter = () => { export type TemplateFooterProps = {
isDocument?: boolean;
};
export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
return ( return (
<Section> <Section>
<Text className="my-4 text-base text-slate-400"> {isDocument && (
This document was sent using{' '} <Text className="my-4 text-base text-slate-400">
<Link className="text-[#7AC455]" href="https://documenso.com"> This document was sent using{' '}
Documenso. <Link className="text-[#7AC455]" href="https://documenso.com">
</Link> Documenso.
</Text> </Link>
</Text>
)}
<Text className="my-8 text-sm text-slate-400"> <Text className="my-8 text-sm text-slate-400">
Documenso Documenso

View File

@ -62,7 +62,7 @@ export const ForgotPasswordTemplate = ({
<div className="mx-auto mt-12 max-w-xl" /> <div className="mx-auto mt-12 max-w-xl" />
<Container className="mx-auto max-w-xl"> <Container className="mx-auto max-w-xl">
<TemplateFooter /> <TemplateFooter isDocument={false} />
</Container> </Container>
</Section> </Section>
</Body> </Body>

View File

@ -90,7 +90,7 @@ export const ResetPasswordTemplate = ({
<Hr className="mx-auto mt-12 max-w-xl" /> <Hr className="mx-auto mt-12 max-w-xl" />
<Container className="mx-auto max-w-xl"> <Container className="mx-auto max-w-xl">
<TemplateFooter /> <TemplateFooter isDocument={false} />
</Container> </Container>
</Section> </Section>
</Body> </Body>