The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update app-sidebar-nav.tsx
Steven Tey2ff27b717741
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsxindex 438918ee8e..e749c6b1b5 100644--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx@@ -63,7 +63,7 @@ type SidebarNavData = {showNews?: boolean;pendingPayoutsCount?: number;applicationsCount?: number;- pendingBountySubmissionsCount?: number;+ submittedBountiesCount?: number;unreadMessagesCount?: number;showConversionGuides?: boolean;};@@ -196,7 +196,7 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {showNews,pendingPayoutsCount,applicationsCount,- pendingBountySubmissionsCount,+ submittedBountiesCount,unreadMessagesCount,}) => ({title: "Partner Program",@@ -290,10 +290,10 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {name: "Bounties",icon: Trophy,href: `/${slug}/program/bounties`,- badge: pendingBountySubmissionsCount- ? pendingBountySubmissionsCount > 99+ badge: submittedBountiesCount+ ? submittedBountiesCount > 99? "99+"- : pendingBountySubmissionsCount+ : submittedBountiesCount: "New",},{@@ -496,8 +496,8 @@ export function AppSidebarNav({enabled: Boolean(currentArea === "program" && defaultProgramId),});- const pendingBountySubmissionsCount =- submissionsCount?.find(({ status }) => status === "pending")?.count || 0;+ const submittedBountiesCount =+ submissionsCount?.find(({ status }) => status === "submitted")?.count || 0;const { count: unreadMessagesCount } = usePartnerMessagesCount({enabled: Boolean(@@ -531,7 +531,7 @@ export function AppSidebarNav({defaultProgramId: defaultProgramId || undefined,pendingPayoutsCount,applicationsCount,- pendingBountySubmissionsCount,+ submittedBountiesCount,unreadMessagesCount,showConversionGuides: canTrackConversions && customersCount === 0,}}