[fix] users button not working
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user