diff --git a/app/components/RoleSwitcher.tsx b/app/components/RoleSwitcher.tsx deleted file mode 100644 index fc5fb44..0000000 --- a/app/components/RoleSwitcher.tsx +++ /dev/null @@ -1,21 +0,0 @@ -"use client"; - -import { useAuth } from "../context/AuthContext"; - -export default function RoleSwitcher() { - const { user, toggleRole } = useAuth(); - - if (!user) return null; - - return ( -
- -
- ); -} diff --git a/app/layout.tsx b/app/layout.tsx index be10760..7ec56a1 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -3,7 +3,6 @@ import { Geist, Geist_Mono } from "next/font/google"; import { CartProvider } from "./context/CartContext"; import { AuthProvider } from "./context/AuthContext"; import { ThemeProvider } from "./context/ThemeContext"; -import RoleSwitcher from "./components/RoleSwitcher"; import "./globals.css"; const geistSans = Geist({ @@ -35,7 +34,6 @@ export default function RootLayout({ {children} - diff --git a/app/profile/page.tsx b/app/profile/page.tsx index 0225385..e69004f 100644 --- a/app/profile/page.tsx +++ b/app/profile/page.tsx @@ -4,7 +4,6 @@ import { useRouter } from "next/navigation"; import { useAuth } from "@/app/context/AuthContext"; import { useState, useEffect } from "react"; import { useTheme } from "@/app/context/ThemeContext"; -import { Switch } from "@/components/ui/switch"; export default function ProfilePage() { const router = useRouter(); @@ -197,11 +196,13 @@ export default function ProfilePage() { 🌙 Dark Mode - toggleTheme()} + )}
@@ -209,14 +210,19 @@ export default function ProfilePage() { 🔔 Notifications
- { - setNotificationsEnabled(checked); - localStorage.setItem("quickbite_notifications_enabled", String(checked)); +