Compare commits

...

2 Commits

Author SHA1 Message Date
victorAnumudu 44491b6aae changed class to className 2023-01-25 12:43:04 +01:00
victorAnumudu ece7fad510 removed error login popout message and made it display error below signin btn 2023-01-24 16:19:54 +01:00
+7 -1
View File
@@ -9,6 +9,10 @@ import AuthLayout from "../AuthLayout";
export default function Login() { export default function Login() {
const [checked, setValue] = useState(false); const [checked, setValue] = useState(false);
const [loginLoading, setLoginLoading] = useState(false); const [loginLoading, setLoginLoading] = useState(false);
//Loggin Error State
const [loginError, setLoginError] = useState(false)
const rememberMe = () => { const rememberMe = () => {
setValue(!checked); setValue(!checked);
}; };
@@ -35,7 +39,8 @@ export default function Login() {
setLoginLoading(false); setLoginLoading(false);
}, 2000); }, 2000);
} else { } else {
toast.error("Invalid Credential"); // toast.error("Invalid Credential");
setLoginError(true)
} }
} }
}; };
@@ -127,6 +132,7 @@ export default function Login() {
)} )}
</button> </button>
</div> </div>
{loginError && <p className="text-center text-red-600 pb-4">Invalid Credential</p>}
<a <a
href="#" href="#"
className="w-full border border-light-purple dark:border-[#5356fb29] rounded-[50px] h-[58px] flex justify-center bg-[#FAFAFA] dark:bg-[#11131F] items-center" className="w-full border border-light-purple dark:border-[#5356fb29] rounded-[50px] h-[58px] flex justify-center bg-[#FAFAFA] dark:bg-[#11131F] items-center"