Skip to content

Commit

Permalink
add types to useForm in Login.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher committed Jan 17, 2025
1 parent 82a88ac commit 650f869
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stubs/inertia-react-ts/resources/js/Pages/Auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import TextInput from '@/Components/TextInput';
import { Head, Link, useForm } from '@inertiajs/react';

export default function Login({ status, canResetPassword }: { status?: string, canResetPassword: boolean }) {
const { data, setData, post, processing, errors, reset } = useForm({
const { data, setData, post, processing, errors, reset } = useForm<{
email: string;
password: string;
remember: boolean;
}>({
email: '',
password: '',
remember: false,
Expand Down

0 comments on commit 650f869

Please sign in to comment.