[fix] users button not working
This commit is contained in:
@@ -57,15 +57,15 @@ const Avatar = () => {
|
|||||||
const path = usePathname()
|
const path = usePathname()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<button
|
||||||
onKeyUp={() => router.push("/users")}
|
onClick={() => router.push("/users")}
|
||||||
className={cn(
|
className={cn(
|
||||||
"w-12 h-12 bg-gray-700 rounded-full shadow-2xl cursor-pointer transition active:scale-95 shadow-purple-800",
|
"w-12 h-12 bg-gray-700 rounded-full shadow-2xl cursor-pointer transition active:scale-95 shadow-purple-800",
|
||||||
path.startsWith("/users") && "shadow-sm",
|
path.startsWith("/users") && "shadow-sm",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<img src="favicon.ico" alt="avatar" draggable={false} />
|
<img src="favicon.ico" alt="avatar" draggable={false} />
|
||||||
</div>
|
</button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user