Skip to content

Commit 052077e

Browse files
committed
remove "and again for" verbiage
1 parent 01d4930 commit 052077e

File tree

3 files changed

+29
-9
lines changed

3 files changed

+29
-9
lines changed

apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/apply/success/screenshot.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,7 @@ export function Screenshot({
347347
>
348348
20%
349349
</tspan>
350-
<tspan> for each conversion, and again </tspan>
351-
<tspan fontWeight="600">every month</tspan>
350+
<tspan> for each conversion</tspan>
352351
</text>
353352
<text
354353
xmlSpace="preserve"

apps/web/app/api/og/program/route.tsx

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export async function GET(req: NextRequest) {
6262

6363
const { rewards } = getGroupRewardsAndDiscount(program.groups[0]);
6464

65+
const reward = rewards[0];
66+
6567
return new ImageResponse(
6668
(
6769
<div
@@ -144,16 +146,35 @@ export async function GET(req: NextRequest) {
144146
{/* @ts-ignore */}
145147
<InvoiceDollar tw="w-8 h-8 mr-4" />
146148
<strong
147-
tw="font-semibold mr-1"
149+
tw="font-semibold mr-1.5"
148150
style={{ fontFamily: "Inter Semibold" }}
149151
>
150-
{constructRewardAmount(rewards[0])} per {rewards[0].event}
152+
{constructRewardAmount(rewards[0])}
153+
{reward.event === "sale" && reward.maxDuration === 0
154+
? " for the first sale"
155+
: ` per ${reward.event}`}
151156
</strong>
152-
{rewards[0].maxDuration === null ? (
153-
"for the customer's lifetime"
154-
) : rewards[0].maxDuration && rewards[0].maxDuration > 1 ? (
157+
{reward.maxDuration === null ? (
158+
<>
159+
for the
160+
<strong
161+
tw="font-semibold ml-1.5"
162+
style={{ fontFamily: "Inter Semibold" }}
163+
>
164+
customer's lifetime
165+
</strong>
166+
</>
167+
) : reward.maxDuration && reward.maxDuration > 1 ? (
155168
<>
156-
, and again every month for {rewards[0].maxDuration} months
169+
for
170+
<strong
171+
tw="font-semibold ml-1.5"
172+
style={{ fontFamily: "Inter Semibold" }}
173+
>
174+
{reward.maxDuration % 12 === 0
175+
? `${reward.maxDuration / 12} year${reward.maxDuration / 12 > 1 ? "s" : ""}`
176+
: `${reward.maxDuration} months`}
177+
</strong>
157178
</>
158179
) : null}
159180
</div>

packages/email/src/templates/partner-application-approved.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function PartnerApplicationApproved({
2828
2929
payoutsEnabled: false,
3030
},
31-
rewardDescription = "Earn 30% for each sale and again every month for 12 months.",
31+
rewardDescription = "Earn 30% for each sale for 12 months.",
3232
}: {
3333
program: {
3434
name: string;

0 commit comments

Comments
 (0)