Skip to content

Commit 3ef3932

Browse files
committed
Fix type checks
1 parent f516d47 commit 3ef3932

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

resources/js/pages/auth/login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import { Input } from '@/components/ui/input';
1010
import { Label } from '@/components/ui/label';
1111
import AuthLayout from '@/layouts/auth-layout';
1212

13-
interface LoginForm {
13+
type LoginForm = {
1414
email: string;
1515
password: string;
1616
remember: boolean;
17-
}
17+
};
1818

1919
interface LoginProps {
2020
status?: string;

resources/js/pages/auth/register.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import { Input } from '@/components/ui/input';
99
import { Label } from '@/components/ui/label';
1010
import AuthLayout from '@/layouts/auth-layout';
1111

12-
interface RegisterForm {
12+
type RegisterForm = {
1313
name: string;
1414
email: string;
1515
password: string;
1616
password_confirmation: string;
17-
}
17+
};
1818

1919
export default function Register() {
2020
const { data, setData, post, processing, errors, reset } = useForm<RegisterForm>({

resources/js/pages/auth/reset-password.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ interface ResetPasswordProps {
1313
email: string;
1414
}
1515

16-
interface ResetPasswordForm {
16+
type ResetPasswordForm = {
1717
token: string;
1818
email: string;
1919
password: string;
2020
password_confirmation: string;
21-
}
21+
};
2222

2323
export default function ResetPassword({ token, email }: ResetPasswordProps) {
2424
const { data, setData, post, processing, errors, reset } = useForm<ResetPasswordForm>({

0 commit comments

Comments
 (0)