|
@@ -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,16 +33,16 @@ 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)}>
|
|
@@ -50,7 +50,7 @@ const Login = ({onLogin = null, checkLogin = false, promiseLoginStatus, payloadL
|
|
|
</button>
|
|
|
|
|
|
<nav className='login-wrapper__link'>
|
|
|
- <NavLink to="/registration">Registration</NavLink>
|
|
|
+ <NavLink to='/registration'>Registration</NavLink>
|
|
|
</nav>
|
|
|
|
|
|
{promiseLoginStatus === RESOLVED && payloadLogin === null && <LoginError/>}
|