From 24250462f1b27c081e6e87c32b084ab12b7d49d0 Mon Sep 17 00:00:00 2001 From: Alberto Defendi <1369-ahl-berto@users.noreply.gitlab.inf.unibz.it> Date: Tue, 4 May 2021 10:41:17 +0200 Subject: [PATCH] Interface with type replace --- src/components/AuthUser/SignUpForm/SignUpForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/AuthUser/SignUpForm/SignUpForm.tsx b/src/components/AuthUser/SignUpForm/SignUpForm.tsx index 0cd67cd..11e6f95 100644 --- a/src/components/AuthUser/SignUpForm/SignUpForm.tsx +++ b/src/components/AuthUser/SignUpForm/SignUpForm.tsx @@ -6,7 +6,7 @@ import { useStyles } from 'components/AuthUser/SignUpForm/useStyles'; import axios from 'axios'; export const SignUpForm: FC = () => { - interface FormData { + type FormData = { firstName: string; lastName: string; phoneNumber: number; @@ -14,7 +14,7 @@ export const SignUpForm: FC = () => { cardNumber: number; email: string; password: string; - } + }; const { control, errors, handleSubmit } = useForm<FormData>(); -- GitLab