fix the bug in sidebar
This commit is contained in:
parent
137882fcb3
commit
8bdc533b0b
|
|
@ -208,6 +208,7 @@ export function Sidebar({
|
||||||
|
|
||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
if (item.id === "strategic-alignment") {
|
if (item.id === "strategic-alignment") {
|
||||||
|
console.log("test")
|
||||||
onStrategicAlignmentClick?.();
|
onStrategicAlignmentClick?.();
|
||||||
} else if (item.id === "logout") {
|
} else if (item.id === "logout") {
|
||||||
logout();
|
logout();
|
||||||
|
|
@ -223,6 +224,7 @@ export function Sidebar({
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex items-center justify-center w-full px-2 rounded-lg mt-4 transition-all duration-200 group",
|
"flex items-center justify-center w-full px-2 rounded-lg mt-4 transition-all duration-200 group",
|
||||||
)}
|
)}
|
||||||
|
onClick={handleClick}
|
||||||
>
|
>
|
||||||
<div className="flex justify-center rounded-xl border-gray-500/20 border-2 cursor-pointer transition-all hover:bg-[#3F415A]/50 bg-[#3F415A] py-2 text-center items-center gap-3 min-w-0 flex-1">
|
<div className="flex justify-center rounded-xl border-gray-500/20 border-2 cursor-pointer transition-all hover:bg-[#3F415A]/50 bg-[#3F415A] py-2 text-center items-center gap-3 min-w-0 flex-1">
|
||||||
<span className="font-persian text-sm font-medium truncate">
|
<span className="font-persian text-sm font-medium truncate">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user