Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: cleanup email templates
Marc Seitz3d064f94c1ca
diff --git a/components/emails/verification-email-change.tsx b/components/emails/verification-email-change.tsxindex 83f5e1c7..5e6bf887 100644--- a/components/emails/verification-email-change.tsx+++ b/components/emails/verification-email-change.tsx@@ -3,7 +3,6 @@ import {Container,Head,Heading,- Hr,Html,Link,Preview,@@ -12,6 +11,8 @@ import {Text,} from "@react-email/components";+import { Footer } from "./shared/footer";+interface ConfirmEmailChangeProps {email: string;newEmail: string;@@ -19,8 +20,8 @@ interface ConfirmEmailChangeProps {}export function ConfirmEmailChange({- email,- newEmail,+ email = "[email protected]",+ newEmail = "[email protected]",confirmUrl = "https://www.papermark.com",}: ConfirmEmailChangeProps) {return (@@ -60,25 +61,17 @@ export function ConfirmEmailChange({<Text className="max-w-sm flex-wrap break-words font-medium text-purple-600 no-underline">{confirmUrl.replace(/^https?:\/\//, "")}</Text>- <Hr />- <Section className="mt-8 text-gray-400">- <Text className="text-xs">- © {new Date().getFullYear()}{" "}- <a- href="https://www.papermark.com"- className="text-gray-400 no-underline"- target="_blank"- >- papermark.com- </a>- </Text>- <Text className="text-xs">- This email was intended for{" "}- <span className="text-black">{email}</span>. If you were not- expecting this email, you can ignore this email. If you have any- feedback or questions about this email, simply reply to it.- </Text>- </Section>+ <Footer+ footerText={+ <>+ This email was intended for{" "}+ <span className="text-black">{email}</span>. If you were not+ expecting this email, you can ignore this email. If you have+ any feedback or questions about this email, simply reply to+ it.+ </>+ }+ /></Container></Body></Tailwind>diff --git a/components/emails/verification-link.tsx b/components/emails/verification-link.tsxindex ccc5a6d1..06cf9e2d 100644--- a/components/emails/verification-link.tsx+++ b/components/emails/verification-link.tsx@@ -5,7 +5,6 @@ import {Button,Container,Head,- Hr,Html,Preview,Section,@@ -13,6 +12,8 @@ import {Text,} from "@react-email/components";+import { Footer } from "./shared/footer";+const VerificationLinkEmail = ({url = "https://www.papermark.com",}: {@@ -50,23 +51,7 @@ const VerificationLinkEmail = ({<Text className="max-w-sm flex-wrap break-words font-medium text-purple-600 no-underline">{url.replace(/^https?:\/\//, "")}</Text>- <Hr />- <Section className="mt-8 text-gray-400">- <Text className="text-xs">- © {new Date().getFullYear()}{" "}- <a- href="https://www.papermark.com"- className="text-gray-400 no-underline"- target="_blank"- >- papermark.com- </a>- </Text>- <Text className="text-xs">- If you have any feedback or questions about this email, simply- reply to it. I'd love to hear from you!- </Text>- </Section>+ <Footer /></Container></Body></Tailwind>diff --git a/components/emails/viewed-dataroom.tsx b/components/emails/viewed-dataroom.tsxindex f3c77616..658afac3 100644--- a/components/emails/viewed-dataroom.tsx+++ b/components/emails/viewed-dataroom.tsx@@ -5,15 +5,15 @@ import {Button,Container,Head,- Hr,Html,- Link,Preview,Section,Tailwind,Text,} from "@react-email/components";+import { Footer } from "./shared/footer";+export default function ViewedDataroom({dataroomId = "123",dataroomName = "Example Dataroom",@@ -68,39 +68,19 @@ export default function ViewedDataroom({See my dataroom insights</Button></Section>- <Text className="text-sm leading-6 text-black">- Receive view notifications in your{" "}- <Link- href="https://app.papermark.com/settings/general"- className="text-blue-500 underline"- target="_blank"- >- Slack- </Link>{" "}- channel. Stay informed, stay ahead with Papermark.- </Text>- <Hr />- <Section className="mt-8 text-gray-400">- <Text className="text-xs">- © {new Date().getFullYear()}{" "}- <a- href="https://www.papermark.com"- className="text-gray-400 no-underline"- target="_blank"- >- papermark.com- </a>- </Text>- <Text className="text-xs">- If you have any feedback or questions about this email, simply- reply to it. I'd love to hear from you!- </Text>- <Text className="text-xs">- To stop email notifications for this link, edit the link and- uncheck "Receive email notification".- </Text>- </Section>+ <Footer+ footerText={+ <>+ If you have any feedback or questions about this email, simply+ reply to it. I'd love to hear from you!+ <br />+ <br />+ To stop email notifications for this link, edit the link and+ uncheck "Receive email notification".+ </>+ }+ /></Container></Body></Tailwind>diff --git a/components/emails/viewed-document.tsx b/components/emails/viewed-document.tsxindex 155ce3e0..349a1120 100644--- a/components/emails/viewed-document.tsx+++ b/components/emails/viewed-document.tsx@@ -5,15 +5,15 @@ import {Button,Container,Head,- Hr,Html,- Link,Preview,Section,Tailwind,Text,} from "@react-email/components";+import { Footer } from "./shared/footer";+export default function ViewedDocument({documentId = "123",documentName = "Pitchdeck",@@ -68,39 +68,18 @@ export default function ViewedDocument({See my document insights</Button></Section>- <Text className="text-sm leading-6 text-black">- Receive view notifications in your{" "}- <Link- href="https://app.papermark.com/settings/general"- className="text-blue-500 underline"- target="_blank"- >- Slack- </Link>{" "}- channel. Stay informed, stay ahead with Papermark.- </Text>-- <Hr />- <Section className="mt-8 text-gray-400">- <Text className="text-xs">- © {new Date().getFullYear()}{" "}- <a- href="https://www.papermark.com"- className="text-gray-400 no-underline"- target="_blank"- >- papermark.com- </a>- </Text>- <Text className="text-xs">- If you have any feedback or questions about this email, simply- reply to it. I'd love to hear from you!- </Text>- <Text className="text-xs">- To stop email notifications for this link, edit the link and- uncheck "Receive email notification".- </Text>- </Section>+ <Footer+ footerText={+ <>+ If you have any feedback or questions about this email, simply+ reply to it. I'd love to hear from you!+ <br />+ <br />+ To stop email notifications for this link, edit the link and+ uncheck "Receive email notification".+ </>+ }+ /></Container></Body></Tailwind>