From 7111e81f11e682571a662a3db0ba85a2a08bbc7b Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Sat, 8 Jul 2023 19:22:00 +0100 Subject: [PATCH] added family account login input icon --- src/assets/images/icons/family-id.svg | 1 + src/assets/images/icons/family-pin.svg | 3 +++ src/components/AuthPages/Login/index.jsx | 30 ++++++++++++++--------- src/components/AuthPages/SignUp/index.jsx | 12 ++++++--- src/components/Helpers/Icons.jsx | 6 ++++- 5 files changed, 37 insertions(+), 15 deletions(-) create mode 100644 src/assets/images/icons/family-id.svg create mode 100644 src/assets/images/icons/family-pin.svg 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() {