import React from "react"; import FloatingLabel from "react-bootstrap/FloatingLabel"; import Form from "react-bootstrap/Form"; import Button from "react-bootstrap/Button"; import Alert from "react-bootstrap/Alert"; import { useState } from "react"; import { store } from "../reducers/index"; import { actionFullLogin } from "../actions"; import { Link } from "react-router-dom"; import { connect } from "react-redux"; const Login = ({ onLogin }) => { const [login, setLogin] = useState(""); const [password, setPassword] = useState(""); return (

Login

{ setLogin(e.target.value); }} > { setPassword(e.target.value); }} >
Don't have an account? Register
); }; export const CLogin = connect(null, { onLogin: actionFullLogin })(Login);