Wowee types are fucked for resend
This commit is contained in:
parent
3b20f540f8
commit
27ce857b1a
4 changed files with 26 additions and 28 deletions
29
pnpm-lock.yaml
generated
29
pnpm-lock.yaml
generated
|
@ -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:
|
||||
|
|
|
@ -21,7 +21,7 @@ const baseUrl = process.env.VERCEL_URL
|
|||
? `https://${process.env.VERCEL_URL}`
|
||||
: "http://localhost:3000";
|
||||
|
||||
export const Goodbye: React.FC<Readonly<GoodbyeTemplateProps>> = ({ name }) => (
|
||||
export const Goodbye = ({ name }: GoodbyeTemplateProps) => (
|
||||
<Html>
|
||||
<Head />
|
||||
<Preview>Sorry to see you go... 😭</Preview>
|
||||
|
@ -30,15 +30,15 @@ export const Goodbye: React.FC<Readonly<GoodbyeTemplateProps>> = ({ name }) => (
|
|||
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] w-[465px]">
|
||||
<Section className="mt-[32px]">
|
||||
<Img
|
||||
src={ `${baseUrl}/logo.webp` }
|
||||
src={`${baseUrl}/logo.webp`}
|
||||
width="40"
|
||||
height="37"
|
||||
alt={ `Sprint Padawan Logo` }
|
||||
alt={`Sprint Padawan Logo`}
|
||||
className="my-0 mx-auto"
|
||||
/>
|
||||
</Section>
|
||||
<Heading className="text-4xl">Farewell, { name }...</Heading>
|
||||
<Text>{ "Were sorry to see you go." }</Text>
|
||||
<Heading className="text-4xl">Farewell, {name}...</Heading>
|
||||
<Text>{"Were sorry to see you go."}</Text>
|
||||
<Text>
|
||||
Your data has been deleted, including all room history, user data,
|
||||
votes, etc.
|
||||
|
|
|
@ -21,7 +21,7 @@ const baseUrl = process.env.VERCEL_URL
|
|||
? `https://${process.env.VERCEL_URL}`
|
||||
: "http://localhost:3000";
|
||||
|
||||
export const Welcome: React.FC<Readonly<WelcomeTemplateProps>> = ({ name }) => (
|
||||
export const Welcome = ({ name }: WelcomeTemplateProps) => (
|
||||
<Html>
|
||||
<Head />
|
||||
<Preview>🎉 Welcome to Sprint Padawan! 🎉</Preview>
|
||||
|
@ -30,18 +30,18 @@ export const Welcome: React.FC<Readonly<WelcomeTemplateProps>> = ({ name }) => (
|
|||
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] w-[465px]">
|
||||
<Section className="mt-[32px]">
|
||||
<Img
|
||||
src={ `${baseUrl}/logo.webp` }
|
||||
src={`${baseUrl}/logo.webp`}
|
||||
width="40"
|
||||
height="37"
|
||||
alt={ `Sprint Padawan Logo` }
|
||||
alt={`Sprint Padawan Logo`}
|
||||
className="my-0 mx-auto"
|
||||
/>
|
||||
</Section>
|
||||
<Heading className="text-black text-[24px] font-normal text-center p-0 my-[30px] mx-0">
|
||||
🎉 Welcome to Sprint Padawan, <strong>{ name }</strong>! 🎉
|
||||
🎉 Welcome to Sprint Padawan, <strong>{name}</strong>! 🎉
|
||||
</Heading>
|
||||
<Text className="text-black text-[14px] leading-[24px]">
|
||||
Hello { name },
|
||||
Hello {name},
|
||||
</Text>
|
||||
<Text>Thank you for signing up for Sprint Padawan!</Text>
|
||||
<Text>
|
||||
|
|
|
@ -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 <no-reply@sprintpadawan.dev>",
|
||||
to: user.email,
|
||||
subject: "Sorry to see you go... 😭",
|
||||
//@ts-ignore: IDK why this doesn't work...
|
||||
react: Goodbye({ name: user.name }),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue