This commit is contained in:
Hugo Falcao
2022-04-17 23:00:47 -03:00
parent 373df29679
commit 2a44887e82
2 changed files with 5 additions and 6 deletions

View File

@@ -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 = () => {
</small>
<Action message="Já tem conta?" text="Login" link="/login" />
</IonGrid>
{/* <IonProgressBar type="indeterminate"></IonProgressBar><br /> */}
</IonContent>
</IonPage>
);

View File

@@ -25,7 +25,6 @@ export interface CadastroResponse {
export interface CadastroRequest {
name: string;
username: string;
email: string;
birth_date: string;
password: string;