diff --git a/.env.local b/.env.local index a1e6527..49d7333 100644 --- a/.env.local +++ b/.env.local @@ -1,5 +1,5 @@ NEXT_PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 NEXT_PUBLIC_APPWRITE_PROJECT_ID=67e1445400053dca1d9b NEXT_PUBLIC_APPWRITE_DATABASE_ID=67e1452b00016444b37f -NEXT_PUBLIC_APPWRITE_COLLECTION_ID=67fe4029000f7e0a7b92 -NEXT_PUBLIC_APPWRITE_USERS_COLLECTION_ID=67ff72bd00370366ae3e +NEXT_PUBLIC_APPWRITE_COLLECTION_ID=681c367b0016f9ba0e8e +NEXT_PUBLIC_APPWRITE_USERS_COLLECTION_ID=681c35690038f9798152 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 ( -