vit9 5 years ago
parent
commit
5023b09a06
2 changed files with 0 additions and 134 deletions
  1. 0 68
      src/components/Auth/index.js
  2. 0 66
      src/components/Auth/registration.js

+ 0 - 68
src/components/Auth/index.js

@@ -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);

+ 0 - 66
src/components/Auth/registration.js

@@ -1,66 +0,0 @@
-import React from 'react'
-import { Field, reduxForm } from 'redux-form'
-
-const RegistrForm = props => {
-  const { handleSubmit, pristine, reset, submitting } = props
-  return (
-    <form onSubmit={handleSubmit}>
-      <div>
-        <label>Login</label>
-        <div>
-          <Field
-            name="Login"
-            component="input"
-            type="text"
-            placeholder="Login"
-          />
-        </div>
-      </div>
-      <div>
-        <label>Name</label>
-        <div>
-          <Field
-            name="Name"
-            component="input"
-            type="text"
-            placeholder="Name"
-          />
-        </div>
-      </div>
-      <div>
-        <label>Phone</label>
-        <div>
-          <Field
-            name="Phone"
-            component="input"
-            type="text"
-            placeholder="+380XXXXXXXX"
-          />
-        </div>
-      </div>
-      <div>
-        <label>Email</label>
-        <div>
-          <Field
-            name="email"
-            component="input"
-            type="email"
-            placeholder="email@example.com"
-          />
-        </div>
-      </div>
-      <div>
-        <button type="submit" disabled={pristine || submitting}>
-          Submit
-        </button>
-        <button type="button" disabled={pristine || submitting} onClick={reset}>
-          Clear Values
-        </button>
-      </div>
-      </form>
-  )
-}
-
-export default reduxForm({
-  form: 'registrForm'
-})(RegistrForm)