siakad-itm/resources/js/pages/auth/verify-email.tsx
Yoga Pangestu 5cc8ba26b2
Some checks failed
tests / ci (pull_request) Has been cancelled
feat: update user registration to use username instead of name, add user profile model and migration, and implement gender enum
- Changed user creation to use 'username' instead of 'name'.
- Added UserProfile model with relationships to User and gender enum.
- Updated validation rules for username and email.
- Modified migrations to create user_profiles table and adjust users table.
- Updated seeder to create users with profiles.
- Translated various UI texts to Indonesian and improved layout components.
2026-08-03 13:43:30 +07:00

46 lines
1.5 KiB
TypeScript

import { Form, Head } from '@inertiajs/react';
import TextLink from '@/components/text-link';
import { Button } from '@/components/ui/button';
import { Spinner } from '@/components/ui/spinner';
import { logout } from '@/routes';
import { send } from '@/routes/verification';
export default function VerifyEmail({ status }: { status?: string }) {
return (
<>
<Head title="Verifikasi email" />
{status === 'verification-link-sent' && (
<div className="mb-4 text-center text-sm font-medium text-green-600">
Tautan verifikasi baru telah dikirim ke alamat email
yang Anda berikan saat pendaftaran.
</div>
)}
<Form {...send.form()} className="space-y-6 text-center">
{({ processing }) => (
<>
<Button disabled={processing} variant="secondary">
{processing && <Spinner />}
Kirim ulang email verifikasi
</Button>
<TextLink
href={logout()}
className="mx-auto block text-sm"
>
Keluar
</TextLink>
</>
)}
</Form>
</>
);
}
VerifyEmail.layout = {
title: 'Verifikasi email',
description:
'Silakan verifikasi alamat email Anda dengan mengklik tautan yang baru saja kami kirimkan.',
};