diff --git a/src/screens/SignUp.tsx b/src/screens/SignUp.tsx index 320053d..73a367d 100644 --- a/src/screens/SignUp.tsx +++ b/src/screens/SignUp.tsx @@ -10,13 +10,25 @@ import { AuthNavigatorRoutesProps } from '@routes/auth.routes'; import { Input } from '@components/Input'; import { Button } from '@components/Button'; +type FormDataProps = { + name: string; + email: string; + password: string; + confirmPassword: string; +}; + export function SignUp() { const navigation = useNavigation(); - const { control, handleSubmit } = useForm(); + const { control, handleSubmit } = useForm(); - function handleSignUp(data: any) { - console.debug(data); + function handleSignUp({ name, email, password, confirmPassword }: FormDataProps) { + console.debug({ + name, + email, + password, + confirmPassword, + }); } const handleGoBack = () => {