|
@@ -24,8 +24,8 @@ const Login = ({onLogin = null, checkLogin = false, promiseLoginStatus, payloadL
|
|
|
const loginRef = useRef(null)
|
|
|
const pasRef = useRef(null)
|
|
|
|
|
|
- const [login, setLogin] = useState("")
|
|
|
- const [password, setPassword] = useState("")
|
|
|
+ const [login, setLogin] = useState('')
|
|
|
+ const [password, setPassword] = useState('')
|
|
|
|
|
|
const RESOLVED = 'RESOLVED'
|
|
|
|
|
@@ -33,24 +33,24 @@ const Login = ({onLogin = null, checkLogin = false, promiseLoginStatus, payloadL
|
|
|
<div className='login-wrapper'>
|
|
|
<input
|
|
|
value={login}
|
|
|
- placeholder="Login"
|
|
|
+ placeholder='Login'
|
|
|
ref={loginRef}
|
|
|
onChange={(e) => setLogin(e.target.value)}
|
|
|
/>
|
|
|
|
|
|
<input
|
|
|
value={password}
|
|
|
- placeholder="Password"
|
|
|
+ placeholder='Password'
|
|
|
ref={pasRef} onChange={(e) => setPassword(e.target.value)}
|
|
|
- type="password"
|
|
|
+ type='password'
|
|
|
/>
|
|
|
|
|
|
<button onClick={() => onLogin(login, password)}>
|
|
|
<b>Login</b>
|
|
|
</button>
|
|
|
|
|
|
- <nav>
|
|
|
- <NavLink to="/registration">Registration</NavLink>
|
|
|
+ <nav className='login-wrapper__link'>
|
|
|
+ <NavLink to='/registration'>Registration</NavLink>
|
|
|
</nav>
|
|
|
|
|
|
{promiseLoginStatus === RESOLVED && payloadLogin === null && <LoginError/>}
|