'use client'; import React from 'react'; import { Form, Input, Button, Checkbox, Typography, Layout, FormProps } from 'antd'; import './styles.css'; import { useRouter } from 'next/navigation'; const { Title } = Typography; const { Content } = Layout; type FieldType = { username?: string; password?: string; remember?: string; }; const LoginPage = () => { const router = useRouter(); const onFinish: FormProps['onFinish'] = (values) => { console.log('Success:', values); router.push('/dashboard'); }; const onFinishFailed: FormProps['onFinishFailed'] = (errorInfo) => { console.log('Failed:', errorInfo); }; return (
Login
Remember me
); }; export default LoginPage;