diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index 87b16f4..15c8c30 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -1,4 +1,3 @@ - import React, { useState } from "react"; import { Link, useNavigate } from "react-router-dom"; import { Label } from "@/components/ui/label"; @@ -6,43 +5,39 @@ import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { ArrowRight, Mail, KeyRound, Eye, EyeOff } from "lucide-react"; import { useToast } from "@/components/ui/use-toast"; - const Login = () => { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const [showPassword, setShowPassword] = useState(false); const [isLoading, setIsLoading] = useState(false); - const { toast } = useToast(); + const { + toast + } = useToast(); const navigate = useNavigate(); - const handleLogin = async (e: React.FormEvent) => { e.preventDefault(); - if (!email || !password) { toast({ title: "입력 오류", description: "이메일과 비밀번호를 모두 입력해주세요.", - variant: "destructive", + variant: "destructive" }); return; } - setIsLoading(true); - + // 실제 로그인 로직은 추후 구현 // 임시로 2초 후 로그인 성공으로 처리 setTimeout(() => { setIsLoading(false); toast({ title: "로그인 성공", - description: "환영합니다!", + description: "환영합니다!" }); navigate("/"); }, 2000); }; - - return ( -
+ return

뉴모파이낸스

@@ -56,14 +51,7 @@ const Login = () => {
- setEmail(e.target.value)} - className="pl-10 neuro-pressed" - /> + setEmail(e.target.value)} className="pl-10 neuro-pressed" />
@@ -71,19 +59,8 @@ const Login = () => {
- setPassword(e.target.value)} - className="pl-10 neuro-pressed" - /> -
@@ -95,11 +72,7 @@ const Login = () => {
-
@@ -115,8 +88,6 @@ const Login = () => {

- - ); + ; }; - -export default Login; +export default Login; \ No newline at end of file