|
@@ -1,5 +1,5 @@
|
|
|
import React, {useRef, useState} from 'react';
|
|
|
-import { NavLink } from 'react-router-dom';
|
|
|
+import {NavLink} from 'react-router-dom';
|
|
|
import './Registration.css';
|
|
|
import ExistingLoginError from "../../Components/RegistrationError/ExistingLoginError";
|
|
|
import ConfirmPasswordError from "../../Components/RegistrationError/ConfirmPasswordError";
|
|
@@ -22,11 +22,11 @@ const Registration = ({onRegistration}) => {
|
|
|
ref={loginRef}
|
|
|
onChange={(e) => setLogin(e.target.value)}></input>
|
|
|
<input
|
|
|
- value={password}
|
|
|
- placeholder="Password"
|
|
|
- ref={pasRef}
|
|
|
- onChange={(e) => setPassword(e.target.value)}
|
|
|
- type="password"
|
|
|
+ value={password}
|
|
|
+ placeholder="Password"
|
|
|
+ ref={pasRef}
|
|
|
+ onChange={(e) => setPassword(e.target.value)}
|
|
|
+ type="password"
|
|
|
></input>
|
|
|
<input placeholder="Confirm Password"></input>
|
|
|
|
|
@@ -36,14 +36,12 @@ const Registration = ({onRegistration}) => {
|
|
|
<NavLink to="/login">Login</NavLink>
|
|
|
</nav>
|
|
|
|
|
|
- <ExistingLoginError />
|
|
|
- <ConfirmPasswordError />
|
|
|
+ <ExistingLoginError/>
|
|
|
+ <ConfirmPasswordError/>
|
|
|
</div>
|
|
|
)
|
|
|
}
|
|
|
|
|
|
-// export default Registration;
|
|
|
-
|
|
|
const CRegistration = connect(null, {
|
|
|
onRegistration: actionRegistrations
|
|
|
})(Registration)
|