diff --git a/Frontend/package.json b/Frontend/package.json index fcb8cefa..b8149ba6 100644 --- a/Frontend/package.json +++ b/Frontend/package.json @@ -19,6 +19,7 @@ "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", + "react-icons": "^4.6.0", "react-router-dom": "^6.4.2" }, "devDependencies": { diff --git a/Frontend/src/pages/login/Login.jsx b/Frontend/src/pages/login/Login.jsx index aa4bf1e2..156ab82e 100644 --- a/Frontend/src/pages/login/Login.jsx +++ b/Frontend/src/pages/login/Login.jsx @@ -1,8 +1,25 @@ -import React from "react" +import React, { useState } from "react" import "./login.css" import { Link } from "react-router-dom" +import { AiOutlineEyeInvisible, AiOutlineEye } from "react-icons/ai"; function Login() { + const [ emailInput, setEmailInput] = useState(""); + const[ passwordInput, setPasswordInput] = useState(""); + const [ passwordType, setPasswordType] = useState("password"); + const [isPassword, setIsPassword] = useState(true); + + const handleToggle = () => { + if (isPassword) { + setPasswordType("text") + setIsPassword(false); + } else { + setPasswordType("password"); + setIsPassword(true); + } + return setIsPassword(!isPassword); + } + return (