diff --git a/src/assets/images/icons/family-id.svg b/src/assets/images/icons/family-id.svg new file mode 100644 index 0000000..49ddcea --- /dev/null +++ b/src/assets/images/icons/family-id.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/images/icons/family-pin.svg b/src/assets/images/icons/family-pin.svg new file mode 100644 index 0000000..aac8215 --- /dev/null +++ b/src/assets/images/icons/family-pin.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/src/components/AuthPages/Login/index.jsx b/src/components/AuthPages/Login/index.jsx index 6bb64dd..87311d8 100644 --- a/src/components/AuthPages/Login/index.jsx +++ b/src/components/AuthPages/Login/index.jsx @@ -22,6 +22,8 @@ export default function Login() { const [checked, setValue] = useState(false); const [loginLoading, setLoginLoading] = useState(false); + const [showPassword, setShowPassword] = useState(false); + //login error state const [loginError, setLoginError] = useState(false); // for the catch error @@ -31,6 +33,11 @@ export default function Login() { setValue(!checked); }; + // To Show and Hide Password + const togglePasswordVisibility = () => { + setShowPassword(!showPassword); + }; + //FUNCTION TO DETERMINE/CHANGE LOGIN COMPONENT const handleLoginType = ({ target: { name } }) => { setLoginType(name); @@ -189,7 +196,7 @@ export default function Login() { /> -
+
{/*

@@ -211,7 +218,7 @@ export default function Login() {