// import React, {useState} from 'react';
// // import { Form, Button } from 'react-bootstrap';
// import { connect } from 'react-redux';
// import '../App.css';
// import {actionFullLogin} from "../reducers/reducers";
//
//
// const LoginForm = ({onLogin}) => {
//     const [login, setLogin] = useState('')
//     const [password, setPassword] = useState('')
//
//     return (
//         <>
//             <div className="login-page">
//                 <div className="login-form">
//                     <input class = "login" type="login" placeholder="Enter login" value = {login} onChange = {e => setLogin(e.target.value)}/>
//                     <input class = "password" type="password" placeholder="Password" value = {password} onChange = {e => setPassword(e.target.value)}/>
//                     <button class = "btn" disabled = {!login || !password} onClick = {() => onLogin(login, password)}>Submit</button>
//                     <p>У вас ещё нет аккаунта?<a href="/reg">Зарегистрироваться</a></p>
//                 </div>
//             </div>
//         </>
//     )
// }
//
// export const ConnectLoginForm = connect(null, {onLogin:actionFullLogin}) (LoginForm)