[dep] update to eslint 9

This commit is contained in:
Purp1e
2024-11-11 10:04:00 +08:00
parent e308309fb8
commit b1d505fd6b
36 changed files with 353 additions and 218 deletions

View File

@@ -1,20 +1,26 @@
"use client";
"use client"
import { useRouter } from "next/navigation";
import { useRouter } from "next/navigation"
const Home = () => {
const router = useRouter();
const router = useRouter()
return (
<main
className="flex flex-col items-center justify-center w-full h-screen gap-6"
data-tauri-drag-region
>
<h1 className="text-4xl font-bold tracking-wide text-zinc-800">CS </h1>
<button onClick={() => router.push("/home")} className="px-4 py-1 rounded bg-zinc-200">
<h1 className="text-4xl font-bold tracking-wide text-zinc-800">
CS
</h1>
<button
type="button"
onClick={() => router.push("/home")}
className="px-4 py-1 rounded bg-zinc-200"
>
</button>
</main>
)
};
}
export default Home;
export default Home