|
@@ -9,15 +9,14 @@ let RegistrationForm = props => {
|
|
|
const { handleSubmit, postCheckInSubmit } = props;
|
|
|
|
|
|
const submit = value => {
|
|
|
- console.log(value);
|
|
|
+ //console.log(value);
|
|
|
postCheckInSubmit(value);
|
|
|
+ props.history.push('/login');
|
|
|
};
|
|
|
|
|
|
return (
|
|
|
<form className="form" onSubmit={handleSubmit(submit)}>
|
|
|
- <div>
|
|
|
- <Field name="name" component={customInput} type="text" id="name" label="Full name"/>
|
|
|
- </div>
|
|
|
+ <Field name="name" component={customInput} type="text" id="name" label="Full name"/>
|
|
|
<div className="reg-radio">
|
|
|
<div className="radio-label">
|
|
|
<Field name="sex" component="input" type="radio" id="male" value="male" hidden/>
|
|
@@ -29,18 +28,10 @@ let RegistrationForm = props => {
|
|
|
<label htmlFor="female">female</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- <Field name="phone" component={customInput} type="phone" id="phone" label="Phone"/>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <Field name="email" component={customInput} type="email" id="email" label="E-mail"/>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <Field name="password" component={customInput} type="password" id="password" label="Password"/>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <Field name="confirmPassword" component={customInput} type="password" id="confirmPassword" label="Confirm Password"/>
|
|
|
- </div>
|
|
|
+ <Field name="phone" component={customInput} type="phone" id="phone" label="Phone"/>
|
|
|
+ <Field name="email" component={customInput} type="email" id="email" label="E-mail"/>
|
|
|
+ <Field name="password" component={customInput} type="password" id="password" label="Password"/>
|
|
|
+ <Field name="confirmPassword" component={customInput} type="password" id="confirmPassword" label="Confirm Password"/>
|
|
|
|
|
|
<button type="submit" className="btn">Check in</button>
|
|
|
</form>
|