diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4840b48..b98aca5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1662,7 +1662,7 @@ packages:
hasBin: true
dependencies:
caniuse-lite: 1.0.30001516
- electron-to-chromium: 1.4.461
+ electron-to-chromium: 1.4.463
node-releases: 2.0.13
update-browserslist-db: 1.0.11(browserslist@4.21.9)
dev: false
@@ -2143,8 +2143,8 @@ packages:
sigmund: 1.0.1
dev: false
- /electron-to-chromium@1.4.461:
- resolution: {integrity: sha512-1JkvV2sgEGTDXjdsaQCeSwYYuhLRphRpc+g6EHTFELJXEiznLt3/0pZ9JuAOQ5p2rI3YxKTbivtvajirIfhrEQ==}
+ /electron-to-chromium@1.4.463:
+ resolution: {integrity: sha512-fT3hvdUWLjDbaTGzyOjng/CQhQJSQP8ThO3XZAoaxHvHo2kUXiRQVMj9M235l8uDFiNPsPa6KHT1p3RaR6ugRw==}
dev: false
/emoji-regex@9.2.2:
@@ -2202,7 +2202,7 @@ packages:
is-regex: 1.1.4
is-shared-array-buffer: 1.0.2
is-string: 1.0.7
- is-typed-array: 1.1.10
+ is-typed-array: 1.1.11
is-weakref: 1.0.2
object-inspect: 1.12.3
object-keys: 1.1.1
@@ -2218,7 +2218,7 @@ packages:
typed-array-byte-offset: 1.0.0
typed-array-length: 1.0.4
unbox-primitive: 1.0.2
- which-typed-array: 1.1.10
+ which-typed-array: 1.1.11
dev: true
/es-set-tostringtag@2.0.1:
@@ -3160,7 +3160,7 @@ packages:
dependencies:
call-bind: 1.0.2
get-intrinsic: 1.2.1
- is-typed-array: 1.1.10
+ is-typed-array: 1.1.11
dev: true
/is-arrayish@0.2.1:
@@ -3315,8 +3315,8 @@ packages:
has-symbols: 1.0.3
dev: true
- /is-typed-array@1.1.10:
- resolution: {integrity: sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==}
+ /is-typed-array@1.1.11:
+ resolution: {integrity: sha512-l2SCJk9RflSWHQjOJJgNsV5FnE1pq/RpHnYW6ckSjTCYypv07SMbiRSCmLQD63WOv2eXaEwNsn+7kcn3csvYSw==}
engines: {node: '>= 0.4'}
dependencies:
available-typed-arrays: 1.0.5
@@ -5142,7 +5142,7 @@ packages:
dependencies:
call-bind: 1.0.2
get-intrinsic: 1.2.1
- is-typed-array: 1.1.10
+ is-typed-array: 1.1.11
dev: true
/typed-array-byte-length@1.0.0:
@@ -5152,7 +5152,7 @@ packages:
call-bind: 1.0.2
for-each: 0.3.3
has-proto: 1.0.1
- is-typed-array: 1.1.10
+ is-typed-array: 1.1.11
dev: true
/typed-array-byte-offset@1.0.0:
@@ -5163,7 +5163,7 @@ packages:
call-bind: 1.0.2
for-each: 0.3.3
has-proto: 1.0.1
- is-typed-array: 1.1.10
+ is-typed-array: 1.1.11
dev: true
/typed-array-length@1.0.4:
@@ -5171,7 +5171,7 @@ packages:
dependencies:
call-bind: 1.0.2
for-each: 0.3.3
- is-typed-array: 1.1.10
+ is-typed-array: 1.1.11
dev: true
/typescript@5.1.6:
@@ -5302,8 +5302,8 @@ packages:
is-symbol: 1.0.4
dev: true
- /which-typed-array@1.1.10:
- resolution: {integrity: sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==}
+ /which-typed-array@1.1.11:
+ resolution: {integrity: sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==}
engines: {node: '>= 0.4'}
dependencies:
available-typed-arrays: 1.0.5
@@ -5311,7 +5311,6 @@ packages:
for-each: 0.3.3
gopd: 1.0.1
has-tostringtag: 1.0.0
- is-typed-array: 1.1.10
dev: true
/which@2.0.2:
diff --git a/src/components/templates/Goodbye.tsx b/src/components/templates/Goodbye.tsx
index cc25aa6..3e2f310 100644
--- a/src/components/templates/Goodbye.tsx
+++ b/src/components/templates/Goodbye.tsx
@@ -21,7 +21,7 @@ const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000";
-export const Goodbye: React.FC> = ({ name }) => (
+export const Goodbye = ({ name }: GoodbyeTemplateProps) => (
Sorry to see you go... ðŸ˜
@@ -30,15 +30,15 @@ export const Goodbye: React.FC> = ({ name }) => (
- Farewell, { name }...
- { "Were 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.
diff --git a/src/components/templates/Welcome.tsx b/src/components/templates/Welcome.tsx
index a35d864..1602f00 100644
--- a/src/components/templates/Welcome.tsx
+++ b/src/components/templates/Welcome.tsx
@@ -21,7 +21,7 @@ const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000";
-export const Welcome: React.FC> = ({ name }) => (
+export const Welcome = ({ name }: WelcomeTemplateProps) => (
🎉 Welcome to Sprint Padawan! 🎉
@@ -30,18 +30,18 @@ export const Welcome: React.FC> = ({ name }) => (
- 🎉 Welcome to Sprint Padawan, { name }! 🎉
+ 🎉 Welcome to Sprint Padawan, {name}! 🎉
- Hello { name },
+ Hello {name},
Thank you for signing up for Sprint Padawan!
diff --git a/src/server/api/routers/user.ts b/src/server/api/routers/user.ts
index 7a55e2a..d7eff4f 100644
--- a/src/server/api/routers/user.ts
+++ b/src/server/api/routers/user.ts
@@ -118,11 +118,10 @@ export const userRouter = createTRPCRouter({
}
if (!!user && user.name && user.email) {
- await resend.sendEmail({
- from: "no-reply@sprintpadawan.dev",
+ await resend.emails.send({
+ from: "Sprint Padawan ",
to: user.email,
subject: "Sorry to see you go... ðŸ˜",
- //@ts-ignore: IDK why this doesn't work...
react: Goodbye({ name: user.name }),
});