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 partner notifications

Steven Tey9ed010734931
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/notifications/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/notifications/page-client.tsx
similarity index 100%
rename from apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/notifications/page-client.tsx
rename to apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/notifications/page-client.tsx
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/notifications/page.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/notifications/page.tsx
similarity index 100%
rename from apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/notifications/page.tsx
rename to apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/notifications/page.tsx
diff --git a/apps/web/lib/middleware/utils/partners-redirect.ts b/apps/web/lib/middleware/utils/partners-redirect.ts
index 1f6dc013f7..a4f9cfdb72 100644
--- a/apps/web/lib/middleware/utils/partners-redirect.ts
+++ b/apps/web/lib/middleware/utils/partners-redirect.ts
@@ -1,6 +1,7 @@
const PARTNERS_REDIRECTS = {
"/settings": "/profile",
"/settings/payouts": "/payouts",
+ "/settings/notifications": "/account/settings/notifications",
};
export const partnersRedirect = (path: string) => {
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index 12e612cf77..219c693316 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -5,8 +5,8 @@ import useCustomersCount from "@/lib/swr/use-customers-count";
import useWorkspace from "@/lib/swr/use-workspace";
import { useRouterStuff } from "@dub/ui";
import {
+ Bell,
Brush,
- CircleInfo,
ConnectedDots,
CubeSettings,
DiamondTurnRight,
@@ -347,7 +347,7 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
items: [
{
name: "Notifications",
- icon: CircleInfo,
+ icon: Bell,
href: `/${slug}/settings/notifications`,
},
],
diff --git a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
index aeebd8203b..451ab61b5c 100644
--- a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
@@ -4,12 +4,12 @@ import useProgramEnrollment from "@/lib/swr/use-program-enrollment";
import useProgramEnrollmentsCount from "@/lib/swr/use-program-enrollments-count";
import { useRouterStuff } from "@dub/ui";
import {
+ Bell,
CircleDollar,
CircleInfo,
CircleUser,
ColorPalette2,
Gauge6,
- Gear,
Gear2,
Globe,
GridIcon,
@@ -61,13 +61,6 @@ const NAV_GROUPS: SidebarNavGroups<SidebarNavData> = ({ pathname }) => [
href: "/profile",
active: pathname.startsWith("/profile"),
},
- {
- name: "Settings",
- description: "Manage preferences for your partner account.",
- icon: Gear,
- href: "/settings/notifications",
- active: pathname.startsWith("/settings"),
- },
];
const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
@@ -234,6 +227,11 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
icon: ShieldCheck,
href: "/account/settings/security",
},
+ {
+ name: "Notifications",
+ icon: Bell,
+ href: "/account/settings/notifications",
+ },
],
},
],
diff --git a/packages/ui/src/icons/nucleo/bell.tsx b/packages/ui/src/icons/nucleo/bell.tsx
new file mode 100644
index 0000000000..7a0f0e8e63
--- /dev/null
+++ b/packages/ui/src/icons/nucleo/bell.tsx
@@ -0,0 +1,30 @@
+import { SVGProps } from "react";
+
+export function Bell(props: SVGProps<SVGSVGElement>) {
+ return (
+ <svg
+ height="18"
+ width="18"
+ viewBox="0 0 18 18"
+ xmlns="http://www.w3.org/2000/svg"
+ {...props}
+ >
+ <g fill="currentColor">
+ <path
+ d="M15.75 12.75C14.645 12.75 13.75 11.855 13.75 10.75V6.5C13.75 3.877 11.623 1.75 9 1.75C6.377 1.75 4.25 3.877 4.25 6.5V10.75C4.25 11.855 3.355 12.75 2.25 12.75H15.75Z"
+ fill="none"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ />
+ <path
+ d="M10.5 15.3843C10.2005 15.9018 9.6409 16.25 9 16.25C8.3591 16.25 7.7995 15.9018 7.5 15.3843"
+ fill="none"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ />
+ </g>
+ </svg>
+ );
+}
diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.ts
index 35e263b39b..c82dc4eb3a 100644
--- a/packages/ui/src/icons/nucleo/index.ts
+++ b/packages/ui/src/icons/nucleo/index.ts
@@ -10,6 +10,7 @@ export * from "./arrows-opposite-direction-x";
export * from "./arrows-opposite-direction-y";
export * from "./badge-check";
export * from "./badge-check2-fill";
+export * from "./bell";
export * from "./blog";
export * from "./bolt";
export * from "./bolt-fill";