|
|
@@ -4,22 +4,27 @@ import { Component } from 'react'; |
|
|
|
import InputWidget from '../../components/input/InputWidget'; |
|
|
|
import styles from './Signup.module.scss'; |
|
|
|
import { Link } from "react-router-dom"; |
|
|
|
import AdditionalQuestions from '../signup/AdditionalQuestions'; |
|
|
|
|
|
|
|
type Props = { }; |
|
|
|
|
|
|
|
type OwnState = { }; |
|
|
|
type OwnState = { |
|
|
|
signupStep: 'BASIC' | 'ADDITIONAL'; |
|
|
|
}; |
|
|
|
|
|
|
|
class SignupPage extends Component<Props, OwnState> { |
|
|
|
constructor( |
|
|
|
props: Props |
|
|
|
) { |
|
|
|
super(props); |
|
|
|
this.state = {}; |
|
|
|
this.state = { |
|
|
|
signupStep: 'ADDITIONAL' |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
render() { |
|
|
|
return <IonPage> |
|
|
|
<IonContent fullscreen> |
|
|
|
{ this.state.signupStep === 'BASIC' && <IonContent fullscreen> |
|
|
|
<section className={styles.upfold}> |
|
|
|
<div className={styles.container}> |
|
|
|
<figure> |
|
|
@@ -57,12 +62,16 @@ class SignupPage extends Component<Props, OwnState> { |
|
|
|
</div> |
|
|
|
|
|
|
|
<div className={styles.actionButtonsHolder}> |
|
|
|
<IonButton className={styles.actionButton} expand="block"> Create </IonButton> |
|
|
|
<IonButton className={styles.actionButton} expand="block" |
|
|
|
onClick={e => this.setState({ signupStep: 'ADDITIONAL' })}> Create </IonButton> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
|
|
|
|
<div className={ styles.navigationLink }> Already have an account? <Link to='/login'> <span> Login </span> </Link> </div> |
|
|
|
</IonContent> |
|
|
|
</IonContent> } |
|
|
|
|
|
|
|
|
|
|
|
{ this.state.signupStep === 'ADDITIONAL' && <AdditionalQuestions /> } |
|
|
|
</IonPage> |
|
|
|
}; |
|
|
|
}; |
|
|
|