chore: format project automatically before starting dev server
This commit is contained in:
+11
-3
@@ -16,7 +16,15 @@ export default function LoginPage() {
|
||||
if (auth.isAuthenticated) router.replace('/dashboard');
|
||||
else if (auth.ready) auth.openLogin(() => router.replace('/dashboard'));
|
||||
}, [auth.isAuthenticated, auth.ready, auth.openLogin, router]);
|
||||
return <main className="max-w-2xl mx-auto min-h-[70vh] px-5 pt-32 pb-20 text-center">
|
||||
<div className="rounded-3xl border border-subtle bg-elevated p-10"><h1 className="text-3xl font-extrabold text-primary">{copy.login}</h1><p className="text-secondary mt-3 mb-7">{copy.protectedDescription}</p><Button type="primary" size="large" onClick={() => auth.openLogin(() => router.replace('/dashboard'))}>{copy.openLogin}</Button></div>
|
||||
</main>;
|
||||
return (
|
||||
<main className="max-w-2xl mx-auto min-h-[70vh] px-5 pt-32 pb-20 text-center">
|
||||
<div className="rounded-3xl border border-subtle bg-elevated p-10">
|
||||
<h1 className="text-3xl font-extrabold text-primary">{copy.login}</h1>
|
||||
<p className="text-secondary mt-3 mb-7">{copy.protectedDescription}</p>
|
||||
<Button type="primary" size="large" onClick={() => auth.openLogin(() => router.replace('/dashboard'))}>
|
||||
{copy.openLogin}
|
||||
</Button>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user