"login" and "signup" buttons

This commit is contained in:
2018-06-03 19:31:56 +03:00
parent be2efc5710
commit 60db0d5765
2 changed files with 18 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ function LoginForm({ handleSubmit, onLogin, user, history, resetUser }) {
component={InputField}
type="password"
/>
<button type="submit">Submit</button>
<button type="submit">Login</button>
</form>
</div>
</div>
@@ -78,4 +78,11 @@ export default reduxForm({
username: '',
password: '',
},
})(withRouter(connect(mapStateToProps, mapDispatchToProps)(LoginForm)));
})(
withRouter(
connect(
mapStateToProps,
mapDispatchToProps,
)(LoginForm),
),
);

View File

@@ -59,7 +59,7 @@ function SignupForm({ handleSubmit, onSignup, user, history, resetUser }) {
component={InputField}
type="password"
/>
<button type="submit">Submit</button>
<button type="submit">Signup</button>
</form>
</div>
</div>
@@ -96,4 +96,11 @@ export default reduxForm({
passwordRepeat: '',
},
validate,
})(withRouter(connect(mapStateToProps, mapDispatchToProps)(SignupForm)));
})(
withRouter(
connect(
mapStateToProps,
mapDispatchToProps,
)(SignupForm),
),
);