Skip to content

Commit 81693b6

Browse files
Tweak verify-email layout
Centered + secondary button + use TextLink
1 parent 4aff27f commit 81693b6

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

resources/js/pages/auth/verify-email.tsx

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// Components
2-
import { Head, Link, useForm } from '@inertiajs/react';
2+
import { Head, useForm } from '@inertiajs/react';
33
import { LoaderCircle } from 'lucide-react';
44
import { FormEventHandler } from 'react';
55

6+
import TextLink from '@/components/text-link';
67
import { Button } from '@/components/ui/button';
78
import AuthLayout from '@/layouts/auth-layout';
89

@@ -25,22 +26,15 @@ export default function VerifyEmail({ status }: { status?: string }) {
2526
</div>
2627
)}
2728

28-
<form onSubmit={submit}>
29-
<div className="mt-4 flex items-center justify-between">
30-
<Button disabled={processing}>
31-
{processing && <LoaderCircle className="h-4 w-4 animate-spin" />}
29+
<form onSubmit={submit} className="space-y-6 text-center">
30+
<Button disabled={processing} variant="secondary">
31+
{processing && <LoaderCircle className="h-4 w-4 animate-spin" />}
3232
Resend verification email
33-
</Button>
34-
35-
<Link
36-
href={route('logout')}
37-
method="post"
38-
as="button"
39-
className="rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-hidden"
40-
>
41-
Log Out
42-
</Link>
43-
</div>
33+
</Button>
34+
35+
<TextLink href={route('logout')} method="post" className="mx-auto block text-sm">
36+
Log out
37+
</TextLink>
4438
</form>
4539
</AuthLayout>
4640
);

0 commit comments

Comments
 (0)