|
@@ -4,6 +4,7 @@ import {NavLink, useHistory} from 'react-router-dom';
|
|
|
import {actionLogin} from '../../Actions/action_login';
|
|
|
import LoginError from '../../Components/LoginError/LoginError';
|
|
|
import './Login.css';
|
|
|
+import Button from "../../Components/Button/Button";
|
|
|
|
|
|
const Login = ({onLogin = null, checkLogin = false, promiseLoginStatus, payloadLogin, loginNetworkError}) => { //деструктуризация объекта
|
|
|
|
|
@@ -45,9 +46,15 @@ const Login = ({onLogin = null, checkLogin = false, promiseLoginStatus, payloadL
|
|
|
type='password'
|
|
|
/>
|
|
|
|
|
|
- <button onClick={() => onLogin(login, password)}>
|
|
|
- <b>Login</b>
|
|
|
- </button>
|
|
|
+ {/*<button onClick={() => onLogin(login, password)}>*/}
|
|
|
+ {/* <b>Login</b>*/}
|
|
|
+ {/*</button>*/}
|
|
|
+
|
|
|
+ <Button
|
|
|
+ name='Login2'
|
|
|
+ isValid={true}
|
|
|
+ callback={() => onLogin(login, password)}
|
|
|
+ />
|
|
|
|
|
|
<nav className='login-wrapper__link'>
|
|
|
<NavLink to='/registration'>Registration</NavLink>
|