Fix any, fix formatting
This commit is contained in:
@@ -36,8 +36,8 @@ export default function AuthPage() {
|
||||
localStorage.setItem("token", data.token);
|
||||
localStorage.setItem("username", data.username);
|
||||
router.push("/landing");
|
||||
} catch (err: any) {
|
||||
setError(err.message ?? "Failed to authenticate");
|
||||
} catch (err: unknown) {
|
||||
setError((err as Error).message ?? "Failed to authenticate");
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
@@ -45,7 +45,6 @@ export default function AuthPage() {
|
||||
|
||||
return (
|
||||
<main className="relative flex min-h-screen items-center justify-center p-6">
|
||||
|
||||
{/* Foreground content */}
|
||||
<div className="w-full max-w-sm space-y-8">
|
||||
<h1 className="text-center text-5xl sm:text-6xl md:text-7xl font-bold text-white drop-shadow-lg">
|
||||
@@ -85,7 +84,11 @@ export default function AuthPage() {
|
||||
className="bg-white/60 text-black"
|
||||
/>
|
||||
</div>
|
||||
<Button type="submit" className="btn-brand w-full" disabled={loading}>
|
||||
<Button
|
||||
type="submit"
|
||||
className="btn-brand w-full"
|
||||
disabled={loading}
|
||||
>
|
||||
{loading
|
||||
? "Please wait…"
|
||||
: mode === "login"
|
||||
|
||||
Reference in New Issue
Block a user