From 940e6561f4d9517153e0a29e2a9b2953c6a24a46 Mon Sep 17 00:00:00 2001 From: Tiago Yamamoto Date: Mon, 22 Dec 2025 15:10:29 -0300 Subject: [PATCH] feat(marketplace): add password visibility toggle with eye icon on login page --- marketplace/src/pages/Login.tsx | 43 ++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/marketplace/src/pages/Login.tsx b/marketplace/src/pages/Login.tsx index e9e07ea..68c7ebc 100644 --- a/marketplace/src/pages/Login.tsx +++ b/marketplace/src/pages/Login.tsx @@ -4,10 +4,25 @@ import { useAuth, UserRole } from '../context/AuthContext' import { authService } from '../services/auth' import { decodeJwtPayload } from '../utils/jwt' +// Eye icon components for password visibility toggle +const EyeIcon = () => ( + + + + +) + +const EyeSlashIcon = () => ( + + + +) + export function LoginPage() { const { login } = useAuth() const [username, setUsername] = useState('') const [password, setPassword] = useState('') + const [showPassword, setShowPassword] = useState(false) const [errorMessage, setErrorMessage] = useState(null) const [loading, setLoading] = useState(false) @@ -107,15 +122,25 @@ export function LoginPage() { - setPassword(e.target.value)} - /> +
+ setPassword(e.target.value)} + /> + +