p5.js-web-editor/client/modules/User/components/SignupForm.jsx

30 lines
1.4 KiB
React
Raw Normal View History

2016-06-10 05:52:04 +02:00
import React from 'react'
class SignupForm extends React.Component {
render() {
const {fields: { username, email, password, confirmPassword }, handleSubmit} = this.props;
return (
2016-06-14 03:07:00 +02:00
<form className="signup-form" onSubmit={handleSubmit(this.props.signUpUser.bind(this))}>
2016-06-14 20:46:40 +02:00
<p className="signup-form__field">
2016-06-14 03:07:00 +02:00
<label className="signup-form__username-label" for="username">Username:</label>
<input className="signup-form__username-input" id="username" type="text" placeholder="Username" {...username}/>
</p>
2016-06-14 20:46:40 +02:00
<p className="signup-form__field">
2016-06-14 03:07:00 +02:00
<label className="signup-form__email-label" for="email">Email:</label>
<input className="signup-form__email-input" id="email" type="text" placeholder="Email" {...email}/>
</p>
2016-06-14 20:46:40 +02:00
<p className="signup-form__field">
2016-06-14 03:07:00 +02:00
<label className="signup-form__password-label" for="password">Password:</label>
<input className="signup-form__password-input" id="password" type="password" placeholder="Password" {...password}/>
</p>
2016-06-14 20:46:40 +02:00
<p className="signup-form__field">
2016-06-14 03:07:00 +02:00
<label className="signup-form__confirm-password-label" for="confirm-password">Confirm Password:</label>
<input className="signup-form__confirm-password-input" id="confirm-password" type="password" placeholder="Confirm Password" {...confirmPassword}/>
</p>
2016-06-10 05:52:04 +02:00
<input type="submit" value="Sign Up" />
</form>
)
}
}
export default SignupForm;