[fix] users button not working

This commit is contained in:
Purp1e
2025-03-12 23:59:54 +08:00
parent 71858e5fec
commit c4100120a4

View File

@@ -57,15 +57,15 @@ const Avatar = () => {
const path = usePathname()
return (
<div
onKeyUp={() => router.push("/users")}
<button
onClick={() => router.push("/users")}
className={cn(
"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",
)}
>
<img src="favicon.ico" alt="avatar" draggable={false} />
</div>
</button>
)
}