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