|
@@ -1,6 +1,7 @@
|
|
|
-import React, { Component } from "react";
|
|
|
+import React from "react";
|
|
|
import { reduxForm, Field } from "redux-form";
|
|
|
|
|
|
+<<<<<<< HEAD
|
|
|
import { renderField } from "../../common/formFunc";
|
|
|
import authValidate from "../../utils/validate";
|
|
|
|
|
@@ -30,10 +31,38 @@ class Form extends Component {
|
|
|
placeholder ="password"
|
|
|
/>
|
|
|
|
|
|
+=======
|
|
|
+import { authValidate } from "../utils/validate";
|
|
|
+
|
|
|
+const Form = props => {
|
|
|
+ const { handleSubmit,submitting } = props
|
|
|
+ return (
|
|
|
+ <form className="auth__form" onSubmit={handleSubmit}>
|
|
|
+ <label>Login:</label>
|
|
|
+ <div>
|
|
|
+ <Field
|
|
|
+ name="email"
|
|
|
+ component="input"
|
|
|
+ type="email"
|
|
|
+ label="E-mail:"
|
|
|
+ placeholder="example@email.com"
|
|
|
+
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <label>Password:</label>
|
|
|
+ <div>
|
|
|
+ <Field
|
|
|
+ name="password"
|
|
|
+ component="input"
|
|
|
+ type="password"
|
|
|
+ label="Password:"
|
|
|
+ placeholder ="password"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+>>>>>>> origin/Klishyn
|
|
|
<button className="auth__submit-button">Submit</button>
|
|
|
</form>
|
|
|
);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
export default reduxForm({ form: "authForm", validate: authValidate })(Form);
|