import React from 'react'; import {useHistory} from 'react-router-dom'; import {Button, Checkbox, Container, Form} from "semantic-ui-react"; const Login = (props) => { const history = useHistory(); const [formData, updateFormData] = React.useState({ email: "", password: "", type: "0" }) const handleCheck = (e, {value}) => { updateFormData({ ...formData, [e.target.name]: value }) } const onFormSubmit = (e) =>{ e.preventDefault(); const email = formData.email; const password = formData.password; const type = formData.type; props.onCompleteForm(email,password,type); history.push("/"); } return(
LogIn
); } export default Login;