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