Last active
November 30, 2016 06:13
-
-
Save sAbakumoff/772b87c8d686729aea74eaac8a7f1a4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LoginForm extends Component { | |
render() { | |
const { fields: { username, password }, handleSubmit } = this.props; | |
return ( | |
<form className="form-horizontal" onSubmit={ handleSubmit(this.props.memberLogin) }> | |
<div className="form-group"> | |
<input type="text" placeholder="Username" className="form-control" {...username} /> | |
</div> | |
<div className="form-group"> | |
<input type="password" placeholder="Password" className="form-control" {...password} /> | |
</div> | |
<div className="form-group"> | |
<button type="submit" className="btn btn-primary">Login</button> | |
</div> | |
</form> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment