From 1f768be0485bbfa6b542dd24183fe8389acb9355 Mon Sep 17 00:00:00 2001 From: Md Saban <45597394+mdsaban@users.noreply.github.com> Date: Sat, 12 Oct 2024 18:37:20 +0530 Subject: feature(web): Introduce a new sticky navbar. Fixes 520 (#515) * ui: add global header * fix: design fixes * fix: tests * fix navbar background, hide y scrollbar and change sidebar footer to show version --------- Co-authored-by: MohamedBassem --- .../dashboard/sidebar/SidebarProfileOptions.tsx | 68 ---------------------- 1 file changed, 68 deletions(-) delete mode 100644 apps/web/components/dashboard/sidebar/SidebarProfileOptions.tsx (limited to 'apps/web/components/dashboard/sidebar/SidebarProfileOptions.tsx') diff --git a/apps/web/components/dashboard/sidebar/SidebarProfileOptions.tsx b/apps/web/components/dashboard/sidebar/SidebarProfileOptions.tsx deleted file mode 100644 index af3f1548..00000000 --- a/apps/web/components/dashboard/sidebar/SidebarProfileOptions.tsx +++ /dev/null @@ -1,68 +0,0 @@ -"use client"; - -import Link from "next/link"; -import { useToggleTheme } from "@/components/theme-provider"; -import { Button } from "@/components/ui/button"; -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuTrigger, -} from "@/components/ui/dropdown-menu"; -import { LogOut, Moon, MoreHorizontal, Paintbrush, Sun } from "lucide-react"; -import { signOut } from "next-auth/react"; -import { useTheme } from "next-themes"; - -function DarkModeToggle() { - const { theme } = useTheme(); - - if (theme == "dark") { - return ( - <> - - Light Mode - - ); - } else { - return ( - <> - - Dark Mode - - ); - } -} - -export default function SidebarProfileOptions() { - const toggleTheme = useToggleTheme(); - return ( - - - - - - - - - Cleanups - - - - - - - signOut({ - callbackUrl: "/", - }) - } - > - - Sign Out - - - - ); -} -- cgit v1.2.3-70-g09d2