Some checks failed
tests / ci (pull_request) Has been cancelled
- 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.
46 lines
1.5 KiB
TypeScript
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.',
|
|
};
|