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.

hide bounties in partners.dub.co unless enabled by program

Steven Tey5f236ac3aa9c
diff --git a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
index d7b481b138..595b023383 100644
--- a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
@@ -124,13 +124,17 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
href: `/programs/${programSlug}/links`,
locked: isUnapproved,
},
- {
- name: "Bounties",
- icon: Trophy,
- href: `/programs/${programSlug}/bounties`,
- badge: programBountiesCount || undefined,
- locked: isUnapproved,
- },
+ ...(programBountiesCount // TODO: remove this when we launch Bounties to GA
+ ? [
+ {
+ name: "Bounties",
+ icon: Trophy,
+ href: `/programs/${programSlug}/bounties` as `/${string}`,
+ badge: programBountiesCount,
+ locked: isUnapproved,
+ },
+ ]
+ : []),
{
name: "Resources",
icon: ColorPalette2,