소스 검색

authorisation

Alex 5 년 전
부모
커밋
83742cbd27
1개의 변경된 파일34개의 추가작업 그리고 0개의 파일을 삭제
  1. 34 0
      src/components/Auth/authorisation.js

+ 34 - 0
src/components/Auth/authorisation.js

@@ -0,0 +1,34 @@
+import React from "react";
+import { reduxForm, Field } from "redux-form";
+import  authValidate  from "../../utils/validate";
+import Auth from './index'
+const Form = props => {
+  const { handleSubmit,submitting } = props
+    return (
+      <div>
+        <Auth />
+        <form className="auth__form" onSubmit={handleSubmit}>
+          <div>
+            <Field
+              name="email"
+              component="input"
+              type="email" 
+              placeholder="Email@example.com"
+
+            />
+          </div>
+          <div>  
+            <Field
+              name="password"
+              component="input" 
+              type="password" 
+              placeholder ="Password"  
+            />
+          </div>
+          <button className="auth__submit-button">Submit</button>
+        </form>
+      </div>
+    );
+}
+
+export default reduxForm({ form: "authForm", validate: authValidate })(Form);