sidebar finished

This commit is contained in:
2024-06-08 22:29:11 -04:00
parent cd876ef54e
commit e25f783dd1
+5 -2
View File
@@ -56,7 +56,7 @@ function Sidebar() {
items: [ items: [
{ {
link: "/", link: "/",
icon: <LayoutGridIcon height={20} />, icon: <LayoutGridIcon height={20} width={20} />,
text: "Dashboard", text: "Dashboard",
}, },
{ {
@@ -143,7 +143,10 @@ function Sidebar() {
<TooltipTrigger className="w-full"> <TooltipTrigger className="w-full">
<div <div
key={optionKey} key={optionKey}
className="flex gap-2 cursor-pointer p-2 hover:bg-neutral-700 rounded-xl" className={cn(
isCollapsed ? "justify-center" : "",
"flex gap-2 cursor-pointer p-2 hover:bg-neutral-700 rounded-xl"
)}
onClick={() => handleClick(option.link)} onClick={() => handleClick(option.link)}
> >
<div <div