The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
move account notifications under Partner profile
Steven Tey326016ed1f4a
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/members/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/members/page-client.tsxindex 6c79d32cd9..cb74d4d790 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/members/page-client.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/members/page-client.tsx@@ -355,7 +355,7 @@ function RowMenuButton({icon={UserMinus}label={isCurrentUser- ? "Leave partner profile"+ ? "Leave partner team": isInvite? "Revoke invitation": "Remove member"diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/notifications/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/notifications/page-client.tsxsimilarity index 100%rename from apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/notifications/page-client.tsxrename to apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/notifications/page-client.tsxdiff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/notifications/page.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/notifications/page.tsxsimilarity index 100%rename from apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/notifications/page.tsxrename to apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/notifications/page.tsxdiff --git a/apps/web/lib/middleware/utils/partners-redirect.ts b/apps/web/lib/middleware/utils/partners-redirect.tsindex efbd045277..f266103b1e 100644--- a/apps/web/lib/middleware/utils/partners-redirect.ts+++ b/apps/web/lib/middleware/utils/partners-redirect.ts@@ -1,7 +1,8 @@const PARTNERS_REDIRECTS = {"/settings": "/profile","/settings/payouts": "/payouts",- "/settings/notifications": "/account/settings/notifications",+ "/settings/notifications": "/profile/notifications",+ "/account/settings/notifications": "/profile/notifications","/profile/sites": "/profile",};diff --git a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsxindex 8768c02310..b4556bbde0 100644--- a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx+++ b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx@@ -121,9 +121,7 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {name: "Profile",icon: SquareUserSparkle2,href: "/profile",- isActive: (pathname, href) =>- pathname.startsWith(href) &&- !pathname.startsWith(`${href}/members`),+ exact: true,},{name: "Members",@@ -132,6 +130,16 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {},],},+ {+ name: "Account",+ items: [+ {+ name: "Notifications",+ icon: Bell,+ href: "/profile/notifications",+ },+ ],+ },],}),diff --git a/apps/web/ui/modals/remove-partner-user-modal.tsx b/apps/web/ui/modals/remove-partner-user-modal.tsxindex 1297ce98f6..6341e6d250 100644--- a/apps/web/ui/modals/remove-partner-user-modal.tsx+++ b/apps/web/ui/modals/remove-partner-user-modal.tsx@@ -85,7 +85,7 @@ function RemovePartnerUserModal({{isInvite? "Revoke Invitation": self- ? "Leave Partner Profile"+ ? "Leave Partner Team": "Remove Partner Member"}</h3><p className="text-sm text-neutral-500">