The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update emails
Steven Teyede078f9b4a5
diff --git a/apps/web/emails/new-sale-created.tsx b/apps/web/emails/new-sale-created.tsxindex f75d781efb..54cb392a06 100644--- a/apps/web/emails/new-sale-created.tsx+++ b/apps/web/emails/new-sale-created.tsx@@ -67,18 +67,19 @@ export default function NewSaleCreated({<Tailwind><Body className="mx-auto my-auto bg-white font-sans"><Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">- <Section className="mt-8">+ <Section className="my-8"><Img- src={program.logo || DUB_WORDMARK}- height="40"+ src={program.logo || "https://assets.dub.co/logo.png"}+ height="32"alt={program.name}- className="mx-auto my-0"/></Section>- <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">++ <Heading className="mx-0 p-0 text-lg font-medium text-black">You just made a {earningsInDollars} referral sale!</Heading>- <Text className="text-sm leading-6 text-black">++ <Text className="text-sm leading-6 text-gray-600">Congratulations! Someone made a{" "}<strong>{saleAmountInDollars}</strong> purchase on{" "}<strong>{program.name}</strong> using your referral link (@@ -90,14 +91,14 @@ export default function NewSaleCreated({</a>).</Text>- <Text className="text-sm leading-6 text-black">+ <Text className="text-sm leading-6 text-gray-600">Your received <strong>{earningsInDollars}</strong> in commissionfor this sale and it will be included in your next payout.</Text>- <Text className="text-sm leading-6 text-black"></Text>- <Section className="my-8 text-center">++ <Section className="mb-12 mt-8"><Link- className="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"+ className="rounded-md bg-neutral-900 px-4 py-3 text-[12px] font-medium text-white no-underline"href={linkToSale}>View salediff --git a/apps/web/emails/partner-invite.tsx b/apps/web/emails/partner-invite.tsxindex 58fb3948a7..7e8af6c51d 100644--- a/apps/web/emails/partner-invite.tsx+++ b/apps/web/emails/partner-invite.tsx@@ -1,3 +1,4 @@+import { DUB_WORDMARK } from "@dub/utils";import {Body,Container,@@ -16,35 +17,39 @@ import Footer from "./components/footer";export default function PartnerInvite({email = "[email protected]",appName = "Dub.co",- programName = "Acme",- programLogo = "https://assets.dub.co/logo.png",+ program = {+ name: "Acme",+ logo: DUB_WORDMARK,+ },}: {email: string;appName: string;- programName: string;- programLogo: string | null;+ program: {+ name: string;+ logo: string | null;+ };}) {return (<Html><Head />- <Preview>Sign up for {programName}</Preview>+ <Preview>Sign up for {program.name}</Preview><Tailwind><Body className="mx-auto my-auto bg-white font-sans"><Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5"><Section className="my-8"><Img- src={programLogo || "https://assets.dub.co/logo.png"}+ src={program.logo || "https://assets.dub.co/logo.png"}height="32"alt={appName}/></Section><Heading className="mx-0 p-0 text-lg font-medium text-black">- {programName} invited you to join Dub Partners+ {program.name} invited you to join Dub Partners</Heading><Text className="text-sm leading-6 text-gray-600">- {programName} uses Dub Partners to power their partnership+ {program.name} uses Dub Partners to power their partnershipprograms and wants to partner with great people like yourself!</Text>diff --git a/apps/web/emails/partner-payout-sent.tsx b/apps/web/emails/partner-payout-sent.tsxindex 6113393f66..850ae25107 100644--- a/apps/web/emails/partner-payout-sent.tsx+++ b/apps/web/emails/partner-payout-sent.tsx@@ -23,8 +23,8 @@ export default function PartnerPayoutSent({},payout = {amount: 490,- startDate: "2024-01-01",- endDate: "2024-01-31",+ startDate: "Nov 1, 2024",+ endDate: "Nov 30, 2024",},}: {email: string;@@ -53,29 +53,31 @@ export default function PartnerPayoutSent({<Tailwind><Body className="mx-auto my-auto bg-white font-sans"><Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">- <Section className="mt-8">+ <Section className="my-8"><Img- src={program.logo || DUB_WORDMARK}- height="40"+ src={program.logo || "https://assets.dub.co/logo.png"}+ height="32"alt={program.name}- className="mx-auto my-0"/></Section>- <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">++ <Heading className="mx-0 p-0 text-lg font-medium text-black">You've been paid!</Heading>- <Text className="text-sm leading-6 text-black">++ <Text className="text-sm leading-6 text-gray-600"><strong>{program.name}</strong> has sent you{" "}<strong>{saleAmountInDollars}</strong> for affiliate sales madefrom <strong>{payout.startDate}</strong> to{" "}<strong>{payout.endDate}</strong>.</Text>- <Text className="text-sm leading-6 text-black">+ <Text className="text-sm leading-6 text-gray-600">Your wallet has been updated to reflect this payout.</Text>- <Section className="my-8 text-center">++ <Section className="mb-12 mt-8"><Link- className="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"+ className="rounded-md bg-neutral-900 px-4 py-3 text-[12px] font-medium text-white no-underline"href={linkToPayout}>View payoutsdiff --git a/apps/web/lib/actions/invite-partner.ts b/apps/web/lib/actions/invite-partner.tsindex 3aef5285a8..1435e6cf94 100644--- a/apps/web/lib/actions/invite-partner.ts+++ b/apps/web/lib/actions/invite-partner.ts@@ -127,8 +127,10 @@ export const invitePartnerAction = authActionClientreact: PartnerInvite({email,appName: `${process.env.NEXT_PUBLIC_APP_NAME}`,- programName: program.name,- programLogo: program.logo,+ program: {+ name: program.name,+ logo: program.logo,+ },}),});