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.

Quick nav tweaks

Tim Wilson4001f0ca0b2e
diff --git a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
index 5f7de281a0..f7dd018e3c 100644
--- a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
@@ -74,7 +74,9 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
name: "Programs",
icon: GridIcon,
href: "/programs",
- exact: true,
+ isActive: (pathname, href) =>
+ pathname.startsWith(href) &&
+ !pathname.startsWith(`${href}/invitations`),
},
{
name: "Invitations",
@@ -101,16 +103,26 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
href: `/programs/${programSlug}`,
exact: true,
},
- {
- name: "Earnings",
- icon: CircleDollar,
- href: `/programs/${programSlug}/earnings${queryString}`,
- },
{
name: "Links",
icon: Hyperlink,
href: `/programs/${programSlug}/links`,
},
+ {
+ name: "Resources",
+ icon: ColorPalette2,
+ href: `/programs/${programSlug}/resources`,
+ },
+ ],
+ },
+ {
+ name: "Insights",
+ items: [
+ {
+ name: "Earnings",
+ icon: CircleDollar,
+ href: `/programs/${programSlug}/earnings${queryString}`,
+ },
{
name: "Analytics",
icon: LinesY,
@@ -121,11 +133,6 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
icon: CursorRays,
href: `/programs/${programSlug}/events`,
},
- {
- name: "Resources",
- icon: ColorPalette2,
- href: `/programs/${programSlug}/resources`,
- },
],
},
],
@@ -149,11 +156,6 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
icon: Globe,
href: "/profile/social",
},
- // {
- // name: "Payouts",
- // icon: MoneyBills2,
- // href: "/settings/payouts",
- // },
],
},
],