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

Log In

No Account? Sign Up!
) }