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.

Added holding period for commission eligibility in NewSaleAlertPartner template

Kiran K530170a5ff25
diff --git a/packages/email/src/templates/new-sale-alert-partner.tsx b/packages/email/src/templates/new-sale-alert-partner.tsx
index f068d8166a..bba472869f 100644
--- a/packages/email/src/templates/new-sale-alert-partner.tsx
+++ b/packages/email/src/templates/new-sale-alert-partner.tsx
@@ -23,6 +23,7 @@ export function NewSaleAlertPartner({
name: "Acme",
slug: "acme",
logo: DUB_WORDMARK,
+ holdingPeriodDays: 30,
},
sale = {
amount: 4900,
@@ -37,6 +38,7 @@ export function NewSaleAlertPartner({
name: string;
slug: string;
logo: string | null;
+ holdingPeriodDays: number;
};
sale: {
amount: number;
@@ -90,11 +92,12 @@ export function NewSaleAlertPartner({
</a>
).
</Text>
+
<Text className="text-sm leading-6 text-neutral-600">
You received{" "}
<strong className="text-black">{earningsInDollars}</strong> in
- commission for this sale and it will be included in your next
- payout.
+ commission for this sale and it will be eligible for payout after
+ the program's {program.holdingPeriodDays}-day holding period.
</Text>
<Section className="mb-12 mt-8">