Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

final changes

Steven Tey9d55981bea4c
diff --git a/packages/email/src/templates/links-import-errors.tsx b/packages/email/src/templates/links-import-errors.tsx
index 19e6e9c895..1fcd640f11 100644
--- a/packages/email/src/templates/links-import-errors.tsx
+++ b/packages/email/src/templates/links-import-errors.tsx
@@ -22,7 +22,18 @@ const MAX_ERROR_LINKS = 20;
export function LinksImportErrors({
email,
provider = "CSV",
- errorLinks,
+ errorLinks = [
+ {
+ domain: "dub.sh",
+ key: "123",
+ error: "Invalid URL",
+ },
+ {
+ domain: "dub.sh",
+ key: "456",
+ error: "Invalid URL",
+ },
+ ],
workspaceName,
workspaceSlug,
}: {
diff --git a/packages/email/src/templates/partner-invite.tsx b/packages/email/src/templates/partner-invite.tsx
index 80bdef51e3..159217ecd2 100644
--- a/packages/email/src/templates/partner-invite.tsx
+++ b/packages/email/src/templates/partner-invite.tsx
@@ -16,14 +16,12 @@ import { Footer } from "../components/footer";
export function PartnerInvite({
email = "[email protected]",
- appName = "Dub",
program = {
name: "Acme",
logo: DUB_WORDMARK,
},
}: {
email: string;
- appName: string;
program: {
name: string;
logo: string | null;
@@ -40,7 +38,7 @@ export function PartnerInvite({
<Img
src={program.logo || "https://assets.dub.co/logo.png"}
height="32"
- alt={appName}
+ alt={program.name}
/>
</Section>
diff --git a/packages/email/src/templates/referral-invite.tsx b/packages/email/src/templates/referral-invite.tsx
index f22439e18b..01cd73a489 100644
--- a/packages/email/src/templates/referral-invite.tsx
+++ b/packages/email/src/templates/referral-invite.tsx
@@ -16,13 +16,11 @@ import { Footer } from "../components/footer";
export function ReferralInvite({
email = "[email protected]",
- appName = "Dub",
url = "https://dub.co",
workspaceUser = "Brendon Urie",
workspaceUserEmail = "[email protected]",
}: {
email: string;
- appName: string;
url: string;
workspaceUser: string | null;
workspaceUserEmail: string | null;
@@ -30,15 +28,15 @@ export function ReferralInvite({
return (
<Html>
<Head />
- <Preview>Sign up for {appName}</Preview>
+ <Preview>Sign up for Dub</Preview>
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 max-w-[600px] rounded border border-solid border-neutral-200 px-10 py-5">
<Section className="mt-6 mt-8">
- <Img src={DUB_WORDMARK} height="32" alt={appName} />
+ <Img src={DUB_WORDMARK} height="32" alt="Dub" />
</Section>
<Heading className="mx-0 my-7 p-0 text-xl font-medium text-black">
- Sign up for {appName}
+ Sign up for Dub
</Heading>
{workspaceUser && workspaceUserEmail ? (
<Text className="text-sm leading-6 text-black">
@@ -49,11 +47,11 @@ export function ReferralInvite({
>
{workspaceUserEmail}
</Link>
- ) has invited you to start using {appName}!
+ ) has invited you to start using Dub!
</Text>
) : (
<Text className="text-sm leading-6 text-black">
- You have been invited to start using {appName}!
+ You have been invited to start using Dub!
</Text>
)}
<Section className="mb-8 mt-8">