From 2a44887e823cc6e1f30b4d7076a7ed586f8fc4d8 Mon Sep 17 00:00:00 2001 From: Hugo Falcao Date: Sun, 17 Apr 2022 23:00:47 -0300 Subject: [PATCH] . --- src/pages/Cadastro.tsx | 10 +++++----- src/services/users.ts | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/pages/Cadastro.tsx b/src/pages/Cadastro.tsx index 5cbd393..bb62f33 100644 --- a/src/pages/Cadastro.tsx +++ b/src/pages/Cadastro.tsx @@ -1,4 +1,4 @@ -import { IonIcon, IonItem, IonLabel, IonInput, IonBackButton, IonButton, IonButtons, IonCardTitle, IonCol, IonContent, IonGrid, IonHeader, IonPage, IonRow, IonToolbar } from '@ionic/react'; +import { IonProgressBar, IonItem, IonLabel, IonInput, IonBackButton, IonButton, IonButtons, IonCardTitle, IonCol, IonContent, IonGrid, IonHeader, IonPage, IonRow, IonToolbar } from '@ionic/react'; import { arrowBack, logoFacebook, mail } from 'ionicons/icons'; import { Action } from '../components/Action'; import { useEffect, useState } from 'react'; @@ -25,11 +25,10 @@ const Cadastro: React.FC = () => { // const data = new FormData(event.currentTarget); const signUpForm = { - name: firstName, - last_name: lastName, + name: firstName +' '+ lastName, email: email, - password: password, - birth_date: birthDate + birth_date: birthDate, + password: password } console.log(signUpForm); @@ -154,6 +153,7 @@ const Cadastro: React.FC = () => { + {/*
*/} ); diff --git a/src/services/users.ts b/src/services/users.ts index 853fd1b..73440e1 100644 --- a/src/services/users.ts +++ b/src/services/users.ts @@ -25,7 +25,6 @@ export interface CadastroResponse { export interface CadastroRequest { name: string; - username: string; email: string; birth_date: string; password: string;