From 8f0e9b182e971dff98b18c707d3eb6238abf286e Mon Sep 17 00:00:00 2001
From: Md Saban <45597394+mdsaban@users.noreply.github.com>
Date: Sun, 23 Jun 2024 17:08:34 +0530
Subject: ui(web): move layout selector to main screen (#252)
---
.../dashboard/sidebar/SidebarProfileOptions.tsx | 68 +---------------------
1 file changed, 1 insertion(+), 67 deletions(-)
(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
index c2ae493a..af3f1548 100644
--- a/apps/web/components/dashboard/sidebar/SidebarProfileOptions.tsx
+++ b/apps/web/components/dashboard/sidebar/SidebarProfileOptions.tsx
@@ -7,69 +7,12 @@ import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
- DropdownMenuSub,
- DropdownMenuSubContent,
- DropdownMenuSubTrigger,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
-import { useBookmarkLayout } from "@/lib/userLocalSettings/bookmarksLayout";
-import { updateBookmarksLayout } from "@/lib/userLocalSettings/userLocalSettings";
-import {
- Check,
- LayoutDashboard,
- LayoutGrid,
- LayoutList,
- LayoutPanelLeft,
- LogOut,
- Moon,
- MoreHorizontal,
- Paintbrush,
- Sun,
-} from "lucide-react";
+import { LogOut, Moon, MoreHorizontal, Paintbrush, Sun } from "lucide-react";
import { signOut } from "next-auth/react";
import { useTheme } from "next-themes";
-function BookmarkLayoutSelector() {
- const layout = useBookmarkLayout();
-
- const checkedComp = ;
-
- return (
- <>
- await updateBookmarksLayout("masonry")}
- >
-
-
- Masonry
-
- {layout == "masonry" && checkedComp}
-
- await updateBookmarksLayout("grid")}
- >
-
-
- Grid
-
- {layout == "grid" && checkedComp}
-
- await updateBookmarksLayout("list")}
- >
-
-
- List
-
- {layout == "list" && checkedComp}
-
- >
- );
-}
-
function DarkModeToggle() {
const { theme } = useTheme();
@@ -109,15 +52,6 @@ export default function SidebarProfileOptions() {
-
-
-
- Layout
-
-
-
-
-
signOut({
--
cgit v1.2.3-70-g09d2