Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: remove unused email
Marc Seitz75879913e445
diff --git a/components/emails/email-verification.tsx b/components/emails/email-verification.tsxdeleted file mode 100644index 12132d0d..00000000--- a/components/emails/email-verification.tsx+++ /dev/null@@ -1,81 +0,0 @@-import React from "react";--import {- Body,- Button,- Container,- Head,- Hr,- Html,- Preview,- Section,- Tailwind,- Text,-} from "@react-email/components";--export default function EmailVerification({- verificationURL = "papermark.com",- email = "[email protected]",- isDataroom = false,-}: {- verificationURL: string;- email: string;- isDataroom: boolean;-}) {- return (- <Html>- <Head />- <Preview>Verify your email to view the document</Preview>- <Tailwind>- <Body className="mx-auto my-auto bg-white font-sans">- <Container className="mx-auto my-10 w-[465px] p-5">- <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">- <span className="font-bold tracking-tighter">Papermark</span>- </Text>- <Text className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">- Please verify your email- </Text>- <Text className="text-sm leading-6 text-black">- Please click the verification link below to view the{" "}- {isDataroom ? "dataroom" : "document"}.- </Text>- <Section className="my-8 text-center">- <Button- className="rounded bg-black text-center text-xs font-semibold text-white no-underline"- href={verificationURL}- style={{ padding: "12px 20px" }}- >- Verify Email- </Button>- </Section>- <Text className="text-sm leading-6 text-black">- or copy and paste this URL into your browser:- </Text>- <Text className="max-w-sm flex-wrap break-words font-medium text-purple-600 no-underline">- {verificationURL.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 hover:text-gray-400"- 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>- </Container>- </Body>- </Tailwind>- </Html>- );-}diff --git a/lib/emails/send-email-verification.ts b/lib/emails/send-email-verification.tsdeleted file mode 100644index b32fb7a8..00000000--- a/lib/emails/send-email-verification.ts+++ /dev/null@@ -1,26 +0,0 @@-import EmailVerification from "@/components/emails/email-verification";--import { sendEmail } from "@/lib/resend";--export const sendVerificationEmail = async (- email: string,- verificationURL: string,- isDataroom: boolean = false,-) => {- const emailTemplate = EmailVerification({- verificationURL,- email,- isDataroom,- });- try {- await sendEmail({- to: email,- subject: `Verify your email address to access the ${isDataroom ? "dataroom" : "document"}`,- react: emailTemplate,- test: process.env.NODE_ENV === "development",- verify: true,- });- } catch (e) {- console.error(e);- }-};