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 app-sidebar-nav.tsx

Tim Wilsonf7f17ae4a5a8
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index f10c13d439..b419eb5950 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -227,7 +227,11 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
name: "All Partners",
icon: Users,
href: `/${slug}/program/partners`,
- exact: true,
+ isActive: (pathname: string, href: string) =>
+ pathname.startsWith(href) &&
+ ["applications"].every(
+ (p) => !pathname.startsWith(`${href}/${p}`),
+ ),
},
{
name: "Applications",