diff --git a/resources/js/components/delete-user.tsx b/resources/js/components/delete-user.tsx index 52caed201..6740764c4 100644 --- a/resources/js/components/delete-user.tsx +++ b/resources/js/components/delete-user.tsx @@ -13,7 +13,7 @@ import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, Di export default function DeleteUser() { const passwordInput = useRef(null); - const { data, setData, delete: destroy, processing, reset, errors, clearErrors } = useForm({ password: '' }); + const { data, setData, delete: destroy, processing, reset, errors, clearErrors } = useForm>({ password: '' }); const deleteUser: FormEventHandler = (e) => { e.preventDefault(); diff --git a/resources/js/pages/auth/confirm-password.tsx b/resources/js/pages/auth/confirm-password.tsx index 5b3e7dbe3..bc1ae5723 100644 --- a/resources/js/pages/auth/confirm-password.tsx +++ b/resources/js/pages/auth/confirm-password.tsx @@ -10,7 +10,7 @@ import { Label } from '@/components/ui/label'; import AuthLayout from '@/layouts/auth-layout'; export default function ConfirmPassword() { - const { data, setData, post, processing, errors, reset } = useForm({ + const { data, setData, post, processing, errors, reset } = useForm>({ password: '', }); diff --git a/resources/js/pages/auth/forgot-password.tsx b/resources/js/pages/auth/forgot-password.tsx index 82e171691..51d4aa787 100644 --- a/resources/js/pages/auth/forgot-password.tsx +++ b/resources/js/pages/auth/forgot-password.tsx @@ -11,7 +11,7 @@ import { Label } from '@/components/ui/label'; import AuthLayout from '@/layouts/auth-layout'; export default function ForgotPassword({ status }: { status?: string }) { - const { data, setData, post, processing, errors } = useForm({ + const { data, setData, post, processing, errors } = useForm>({ email: '', }); diff --git a/resources/js/pages/auth/login.tsx b/resources/js/pages/auth/login.tsx index 0c329cd7b..1fccb77dc 100644 --- a/resources/js/pages/auth/login.tsx +++ b/resources/js/pages/auth/login.tsx @@ -22,7 +22,7 @@ interface LoginProps { } export default function Login({ status, canResetPassword }: LoginProps) { - const { data, setData, post, processing, errors, reset } = useForm({ + const { data, setData, post, processing, errors, reset } = useForm>({ email: '', password: '', remember: false, diff --git a/resources/js/pages/auth/register.tsx b/resources/js/pages/auth/register.tsx index 39fd41178..9ef43b6db 100644 --- a/resources/js/pages/auth/register.tsx +++ b/resources/js/pages/auth/register.tsx @@ -17,7 +17,7 @@ interface RegisterForm { } export default function Register() { - const { data, setData, post, processing, errors, reset } = useForm({ + const { data, setData, post, processing, errors, reset } = useForm>({ name: '', email: '', password: '', diff --git a/resources/js/pages/auth/reset-password.tsx b/resources/js/pages/auth/reset-password.tsx index 220d2ff9f..621b8707c 100644 --- a/resources/js/pages/auth/reset-password.tsx +++ b/resources/js/pages/auth/reset-password.tsx @@ -21,7 +21,7 @@ interface ResetPasswordForm { } export default function ResetPassword({ token, email }: ResetPasswordProps) { - const { data, setData, post, processing, errors, reset } = useForm({ + const { data, setData, post, processing, errors, reset } = useForm>({ token: token, email: email, password: '', diff --git a/resources/js/pages/settings/profile.tsx b/resources/js/pages/settings/profile.tsx index 83e3b1bc2..a810bf2c5 100644 --- a/resources/js/pages/settings/profile.tsx +++ b/resources/js/pages/settings/profile.tsx @@ -19,10 +19,15 @@ const breadcrumbs: BreadcrumbItem[] = [ }, ]; +interface ProfileForm { + name: string; + email: string; +} + export default function Profile({ mustVerifyEmail, status }: { mustVerifyEmail: boolean; status?: string }) { const { auth } = usePage().props; - const { data, setData, patch, errors, processing, recentlySuccessful } = useForm({ + const { data, setData, patch, errors, processing, recentlySuccessful } = useForm>({ name: auth.user.name, email: auth.user.email, });