diff --git a/frontend/src/pages/Login.jsx b/frontend/src/pages/Login.jsx index b1905ae..f85ff40 100644 --- a/frontend/src/pages/Login.jsx +++ b/frontend/src/pages/Login.jsx @@ -4,6 +4,7 @@ import { useAuth } from "../contexts/AuthContext"; import "./Login.css"; export default function Login() { + const [isVisible, setIsVisible] = useState(false); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const [error, setError] = useState(""); @@ -35,65 +36,70 @@ export default function Login() { return (
-
+
setIsVisible(true)} + >

Koin Ping - Login

- {error && ( -
- {error} -
- )} +
+ {error && ( +
+ {error} +
+ )} -
-
- - setEmail(e.target.value)} + +
+ + setEmail(e.target.value)} + disabled={loading} + className="login-input" + required + /> +
+ +
+ + setPassword(e.target.value)} + disabled={loading} + className="login-input" + required + /> +
+ +
- -
- - setPassword(e.target.value)} - disabled={loading} - className="login-input" - required - /> -
- - -
- -
-

- Don't have an account?{" "} - - Sign up here - -

+ {loading ? "Logging in..." : "Log In"} + + + +
+

+ Don't have an account?{" "} + + Sign up here + +

+