From 262472c4fa53b069d88e381fd5844d647992753f Mon Sep 17 00:00:00 2001 From: Kingsley Solomon Date: Sun, 28 Jul 2024 22:41:55 +0100 Subject: [PATCH 1/3] feat: added notification view --- .../_components/layout/navbar/index.tsx | 12 +- src/app/dashboard/(user-dashboard)/layout.tsx | 2 +- .../_components/layout/sidebar/index.tsx | 2 +- .../(user-dashboard)/settings/layout.tsx | 4 +- .../notification/_components/header.tsx | 15 +++ .../_components/notification-switch-box.tsx | 22 ++++ .../settings/notification/page.tsx | 107 +++++++++++++++++- src/app/layout.tsx | 2 +- src/email/templates/invoice/image.tsx | 99 ++++++++++++++++ tsconfig.json | 2 +- 10 files changed, 255 insertions(+), 12 deletions(-) create mode 100644 src/app/dashboard/(user-dashboard)/settings/notification/_components/header.tsx create mode 100644 src/app/dashboard/(user-dashboard)/settings/notification/_components/notification-switch-box.tsx create mode 100644 src/email/templates/invoice/image.tsx diff --git a/src/app/dashboard/(user-dashboard)/_components/layout/navbar/index.tsx b/src/app/dashboard/(user-dashboard)/_components/layout/navbar/index.tsx index 935806e9c..40307f740 100644 --- a/src/app/dashboard/(user-dashboard)/_components/layout/navbar/index.tsx +++ b/src/app/dashboard/(user-dashboard)/_components/layout/navbar/index.tsx @@ -10,8 +10,8 @@ import { import Link from "next/link"; import { usePathname } from "next/navigation"; +import DashboardLogo from "~/app/dashboard/(admin)/_components/layout/logo"; import UnreadNotificationCard from "~/app/dashboard/(admin)/_components/unread-notification-card/UnreadNotificationCard"; -import Logo from "~/components/common/logo"; import { Avatar, AvatarFallback, AvatarImage } from "~/components/ui/avatar"; import { Popover, @@ -47,21 +47,21 @@ const UserNavbar = () => { const currentPath = pathname?.split("/")[2]; return (