.
This commit is contained in:
@@ -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 { arrowBack, logoFacebook, mail } from 'ionicons/icons';
|
||||||
import { Action } from '../components/Action';
|
import { Action } from '../components/Action';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
@@ -25,11 +25,10 @@ const Cadastro: React.FC = () => {
|
|||||||
// const data = new FormData(event.currentTarget);
|
// const data = new FormData(event.currentTarget);
|
||||||
|
|
||||||
const signUpForm = {
|
const signUpForm = {
|
||||||
name: firstName,
|
name: firstName +' '+ lastName,
|
||||||
last_name: lastName,
|
|
||||||
email: email,
|
email: email,
|
||||||
password: password,
|
birth_date: birthDate,
|
||||||
birth_date: birthDate
|
password: password
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(signUpForm);
|
console.log(signUpForm);
|
||||||
@@ -154,6 +153,7 @@ const Cadastro: React.FC = () => {
|
|||||||
</small>
|
</small>
|
||||||
<Action message="Já tem conta?" text="Login" link="/login" />
|
<Action message="Já tem conta?" text="Login" link="/login" />
|
||||||
</IonGrid>
|
</IonGrid>
|
||||||
|
{/* <IonProgressBar type="indeterminate"></IonProgressBar><br /> */}
|
||||||
</IonContent>
|
</IonContent>
|
||||||
</IonPage>
|
</IonPage>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ export interface CadastroResponse {
|
|||||||
|
|
||||||
export interface CadastroRequest {
|
export interface CadastroRequest {
|
||||||
name: string;
|
name: string;
|
||||||
username: string;
|
|
||||||
email: string;
|
email: string;
|
||||||
birth_date: string;
|
birth_date: string;
|
||||||
password: string;
|
password: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user