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.

Update page.tsx

Kiran Kfe31f3009aff
diff --git a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/apply/page.tsx b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/apply/page.tsx
index 675fb9aba0..022ca1a436 100644
--- a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/apply/page.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/apply/page.tsx
@@ -13,6 +13,7 @@ export default async function ApplicationPage({
params: { programSlug: string; groupSlug?: string };
}) {
const partnerGroupSlug = groupSlug ?? DEFAULT_PARTNER_GROUP.slug;
+ const isDefaultGroup = partnerGroupSlug === DEFAULT_PARTNER_GROUP.slug;
const program = await getProgram({
slug: programSlug,
@@ -41,7 +42,8 @@ export default async function ApplicationPage({
{program.name} Affiliate Program
</p>
<h1 className="text-4xl font-semibold">
- Apply to {program.name} {capitalize(partnerGroupSlug)}
+ Apply to {program.name}{" "}
+ {!isDefaultGroup ? `(${capitalize(partnerGroupSlug)})` : ""}
</h1>
<p className="text-base text-neutral-700">
Submit your application to join the {program.name} affiliate program