From bd8231912cf0ee8c29ca85e8bb6d2bea5b8bd01b Mon Sep 17 00:00:00 2001
From: Atridad Lahiji
Date: Tue, 22 Aug 2023 21:26:26 -0600
Subject: [PATCH] User Created Email
---
src/components/templates/Goodbye.tsx | 52 -------------------------
src/components/templates/Welcome.tsx | 58 ++++++++++++++--------------
src/pages/api/webhooks/index.ts | 22 ++++++++---
src/server/webhookHelpers.ts | 19 ++++++++-
src/utils/types.ts | 14 ++++---
5 files changed, 72 insertions(+), 93 deletions(-)
delete mode 100644 src/components/templates/Goodbye.tsx
diff --git a/src/components/templates/Goodbye.tsx b/src/components/templates/Goodbye.tsx
deleted file mode 100644
index 3e2f310..0000000
--- a/src/components/templates/Goodbye.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import {
- Body,
- Container,
- Head,
- Heading,
- Hr,
- Html,
- Img,
- Preview,
- Section,
- Tailwind,
- Text,
-} from "@react-email/components";
-import * as React from "react";
-
-interface GoodbyeTemplateProps {
- name: string;
-}
-
-const baseUrl = process.env.VERCEL_URL
- ? `https://${process.env.VERCEL_URL}`
- : "http://localhost:3000";
-
-export const Goodbye = ({ name }: GoodbyeTemplateProps) => (
-
-
- Sorry to see you go... ðŸ˜
-
-
-
-
-
-
- Farewell, {name}...
- {"Were sorry to see you go."}
-
- Your data has been deleted, including all room history, user data,
- votes, etc.
-
-
- — The Sprint Padawan team
-
-
-
-
-);
diff --git a/src/components/templates/Welcome.tsx b/src/components/templates/Welcome.tsx
index 1602f00..1c46510 100644
--- a/src/components/templates/Welcome.tsx
+++ b/src/components/templates/Welcome.tsx
@@ -8,7 +8,7 @@ import {
Img,
Preview,
Section,
- Tailwind,
+ // Tailwind,
Text,
} from "@react-email/components";
import * as React from "react";
@@ -25,33 +25,33 @@ export const Welcome = ({ name }: WelcomeTemplateProps) => (