import InputError from '@/components/InputError'; import InputLabel from '@/components/InputLabel'; import PrimaryButton from '@/components/PrimaryButton'; import TextInput from '@/components/TextInput'; import { Transition } from '@headlessui/react'; import { Link, useForm, usePage } from '@inertiajs/react'; import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from '@/components/ui/card'; import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue, } from '@/components/ui/select'; export default function UpdateProfileInformation({ mustVerifyEmail, status, timezones }) { const user = usePage().props.auth.user; const { data, setData, patch, errors, processing, recentlySuccessful } = useForm({ name: user.name, email: user.email, timezone: user.settings.timezone }); const submit = (e) => { e.preventDefault(); patch(route('profile.update')); }; return (
Profile Information Update your account's profile information and email address.
setData('name', e.target.value) } />
setData('email', e.target.value) } required />
{ mustVerifyEmail && user.email_verified_at === null && (

Your email address is unverified. Click here to re-send the verification email.

{ status === 'verification-link-sent' && (
A new verification link has been sent to your email address.
) }
) }
Save

Saved.

); }