import { Button, Form, Input } from 'antd' import FormItem from 'antd/lib/form/FormItem' import { Link } from 'react-router-dom' import { User } from '../../types' import '../../scss/login.scss' import { useUserContext } from '../../contexts/UserContext' type FormValues = Pick & { password: string } export const Login = () => { const userContext = useUserContext() const [form] = Form.useForm() const handleFinish = ({ name, password }: FormValues) => { userContext.handleLogin(name, password) } return (

Log In

No Account? Sign Up!
) }