|
@@ -1,68 +0,0 @@
|
|
|
-import React from "react";
|
|
|
-import { reduxForm, Field } from "redux-form";
|
|
|
-
|
|
|
-<<<<<<< HEAD
|
|
|
-import { renderField } from "../../common/formFunc";
|
|
|
-import authValidate from "../../utils/validate";
|
|
|
-
|
|
|
-class Form extends Component {
|
|
|
- submit = values => {
|
|
|
- console.log("vlad lox")
|
|
|
-
|
|
|
- }
|
|
|
- render() {
|
|
|
- const { handleSubmit, title, pristine, submitting } = this.props;
|
|
|
- return (
|
|
|
- <form className="auth__form" onSubmit={handleSubmit(this.submit)}>
|
|
|
- <Field
|
|
|
- name="email"
|
|
|
- type="email"
|
|
|
- component = {renderField}
|
|
|
- label="E-mail:"
|
|
|
- placeholder="example@email.com"
|
|
|
- />
|
|
|
-
|
|
|
-
|
|
|
- <Field
|
|
|
- name="password"
|
|
|
- component = {renderField}
|
|
|
- type="password"
|
|
|
- label="Password:"
|
|
|
- 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);
|