[fix] lint error

This commit is contained in:
Purp1e
2024-11-11 10:10:47 +08:00
parent b1d505fd6b
commit 918c6bf83a
3 changed files with 6 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ const SideButton = ({
return (
<button
type="button"
onKeyUp={() => router.push(route || "/")}
onClick={() => router.push(route || "/")}
className={clsx(
className,
"p-2.5 hover:bg-black/5 rounded-lg transition relative",
@@ -57,7 +57,7 @@ const Avatar = () => {
return (
<div
onKeyUp={() => router.push("/users")}
onClick={() => router.push("/users")}
className={clsx(
"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",
@@ -112,7 +112,7 @@ const SideBar = () => {
data-tauri-drag-region
>
<p></p>
<p onKeyUp={() => setVersion("x.y.z")}>{version}</p>
<p onClick={() => setVersion("x.y.z")}>{version}</p>
</div>
</div>
)