aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard/ChangeLayout.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/components/dashboard/ChangeLayout.tsx')
-rw-r--r--apps/web/components/dashboard/ChangeLayout.tsx12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/web/components/dashboard/ChangeLayout.tsx b/apps/web/components/dashboard/ChangeLayout.tsx
index 59acb6bd..7449bd2d 100644
--- a/apps/web/components/dashboard/ChangeLayout.tsx
+++ b/apps/web/components/dashboard/ChangeLayout.tsx
@@ -1,7 +1,7 @@
"use client";
import React from "react";
-import { Button } from "@/components/ui/button";
+import { ButtonWithTooltip } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
@@ -20,15 +20,19 @@ const iconMap = {
list: LayoutList,
};
-export default function SidebarProfileOptions() {
+export default function ChangeLayout() {
const layout = useBookmarkLayout();
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="outline">
+ <ButtonWithTooltip
+ tooltip="Change layout"
+ delayDuration={100}
+ variant="ghost"
+ >
{React.createElement(iconMap[layout], { size: 18 })}
- </Button>
+ </ButtonWithTooltip>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-fit">
{Object.keys(iconMap).map((key) => (