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)} + /> + +