From ecffc3ab8b4a89a1b0b5868b48eae102bd9f5e2e Mon Sep 17 00:00:00 2001 From: Atul Gunjal Date: Thu, 24 Apr 2025 10:32:46 +0530 Subject: [PATCH] Dark mode completed --- src/app/components/Navbar.jsx | 191 ++++++++++++--- src/app/components/Sidebar.jsx | 73 ++++-- src/app/components/TokenTable.jsx | 306 ++++++++++++------------- src/app/components/partials/header.jsx | 149 ++++++------ src/app/context/DashboardContext.js | 0 src/app/context/ThemeContext.js | 6 +- src/app/dashboard/page.js | 23 +- src/app/pages/SingleBooking/page.js | 62 ++--- src/app/pages/done/page.js | 39 +++- src/app/pages/missed/page.js | 36 ++- 10 files changed, 570 insertions(+), 315 deletions(-) delete mode 100644 src/app/context/DashboardContext.js diff --git a/src/app/components/Navbar.jsx b/src/app/components/Navbar.jsx index 01e1386..a26336f 100644 --- a/src/app/components/Navbar.jsx +++ b/src/app/components/Navbar.jsx @@ -6,8 +6,6 @@ import { useRouter } from "next/navigation"; import { useTheme } from "../context/ThemeContext"; import { account } from "../lib/appwrite"; import { useAuth } from "../context/AuthContext"; -import { Bell } from "lucide-react"; -import { motion } from "framer-motion"; import { MdOutlineSettings, MdSupport } from "react-icons/md"; import { AiOutlineUser } from "react-icons/ai"; import NotificationBell from './NotificationBell'; @@ -68,18 +66,44 @@ const Navbar = ({ sidebarOpen, setSidebarOpen, isCollapsed, setIsCollapsed }) => console.error("Logout failed:", error); } }; -// ----------------notificatio logic------------------ + + if (darkMode === undefined) { + return ( + + ); + } return ( -