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 ( -