|
@@ -1,7 +1,7 @@
|
|
import React from 'react';
|
|
import React from 'react';
|
|
import { Field, reduxForm } from 'redux-form'
|
|
import { Field, reduxForm } from 'redux-form'
|
|
import validate from './validate'
|
|
import validate from './validate'
|
|
-import formInput from './formInput'
|
|
|
|
|
|
+import formInput from './../../../common/formInput'
|
|
import { Link } from 'react-router-dom'
|
|
import { Link } from 'react-router-dom'
|
|
import * as routes from './../../../../constants/routes'
|
|
import * as routes from './../../../../constants/routes'
|
|
|
|
|
|
@@ -14,14 +14,14 @@ class Form extends React.Component {
|
|
|
|
|
|
render() {
|
|
render() {
|
|
return (
|
|
return (
|
|
- <form className="sign-in-form" onSubmit={this.handleSubmit} method="POST">
|
|
|
|
- <h2 className="sign-in-form__header">Sign In</h2>
|
|
|
|
- <Field name="login" component={formInput} type="text"/>
|
|
|
|
- <Field name="password" component={formInput} type="password" />
|
|
|
|
- <button className="sign-in-form__submit-button">Sign In</button>
|
|
|
|
- <p className="sign-in-form__link--forgot-password"><Link to={routes.PASSWORD_FORGET}>Forgot password ?</Link></p>
|
|
|
|
- <hr className="sign-in-form__divider"/>
|
|
|
|
- <p className="sign-in-form__link--sign-up">Still ain't got an account? <Link to={routes.SIGN_UP}>Sign up</Link> first!</p>
|
|
|
|
|
|
+ <form className="sign-form" onSubmit={this.handleSubmit} method="POST">
|
|
|
|
+ <h2 className="sign-form__header">Sign In</h2>
|
|
|
|
+ <Field className="sign-form__input sign-form__input--text" placeholder="Login" name="login" component={formInput} type="text"/>
|
|
|
|
+ <Field className="sign-form__input sign-form__input--password" placeholder="Password" name="password" component={formInput} type="password" />
|
|
|
|
+ <button className="sign-form__submit-button">Sign In</button>
|
|
|
|
+ <p className="sign-form__link--forgot-password"><Link to={routes.PASSWORD_FORGET}>Forgot password ?</Link></p>
|
|
|
|
+ <hr className="sign-form__divider"/>
|
|
|
|
+ <p className="sign-form__link--sign-up">Still ain't got an account? <Link to={routes.SIGN_UP}>Sign up</Link> first!</p>
|
|
</form>
|
|
</form>
|
|
)
|
|
)
|
|
}
|
|
}
|