import React, { useState, useRef, } from "react"; import { connect } from "react-redux"; // import { actionLogin } from "../Actions"; // import history from "../history"; import { actionLogin, store } from "../Reduser"; import { Container, FormControl, Nav, Navbar, Form, Button } from 'react-bootstrap'; const LoginForm = ({ onLogin = null, isLoggedIn, mode = "Login" }) => { const [login, setLogin] = useState(""); const [pass, setPass] = useState(""); const [nick, setNick] = useState(""); const input_ref = useRef(null); const pass_ref = useRef(null); const nick_ref = useRef(null); const btn_ref = useRef(null); return ( <>

Your accaunt

Login { setLogin(e.target.value); }} /> Password { setPass(e.target.value) } } /> Confirm Password { setPass(e.target.value); }} />
{/* { setPass(e.target.value); }} > */} {/* */} ); }; const CLoginForm = connect((s) => ({ isLoggedIn: s.auth.login, mode: "Login" }), { onLogin: actionLogin })(LoginForm); export const Login = () => { return ( <>
PageLogin
); };