mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 23:57:49 +01:00
"login" and "signup" buttons
This commit is contained in:
@@ -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),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user