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.

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.tsx
index 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.tsx
similarity index 100%
rename from apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/notifications/page-client.tsx
rename to apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/notifications/page-client.tsx
diff --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.tsx
similarity index 100%
rename from apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/notifications/page.tsx
rename to apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/notifications/page.tsx
diff --git a/apps/web/lib/middleware/utils/partners-redirect.ts b/apps/web/lib/middleware/utils/partners-redirect.ts
index 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.tsx
index 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.tsx
index 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">