diff --git a/src/assets/images/shape/login_straight_underline.svg b/src/assets/images/shape/login_straight_underline.svg new file mode 100644 index 0000000..d79df8d --- /dev/null +++ b/src/assets/images/shape/login_straight_underline.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/images/shape/title-shape-two.svg b/src/assets/images/shape/title-shape-two.svg index 0374734..2484789 100644 --- a/src/assets/images/shape/title-shape-two.svg +++ b/src/assets/images/shape/title-shape-two.svg @@ -1,7 +1,7 @@ - + - + diff --git a/src/components/AuthPages/ForgotPassword/index.jsx b/src/components/AuthPages/ForgotPassword/index.jsx index b7e7c07..4745d89 100644 --- a/src/components/AuthPages/ForgotPassword/index.jsx +++ b/src/components/AuthPages/ForgotPassword/index.jsx @@ -1,4 +1,5 @@ import React from "react"; +import { Link } from 'react-router-dom'; import titleShape from "../../../assets/images/shape/title-shape-two.svg"; import InputCom from "../../Helpers/Inputs/InputCom"; import AuthLayout from "../AuthLayout"; @@ -15,7 +16,7 @@ export default function ForgotPassword() {

Forget Password

-
+
shape
@@ -36,6 +37,13 @@ export default function ForgotPassword() { > Send Code + + + + Back to Home + diff --git a/src/components/AuthPages/Login/index.jsx b/src/components/AuthPages/Login/index.jsx index 0a9c50c..98c733a 100644 --- a/src/components/AuthPages/Login/index.jsx +++ b/src/components/AuthPages/Login/index.jsx @@ -2,19 +2,24 @@ import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; import { toast } from "react-toastify"; import googleLogo from "../../../assets/images/google-logo.svg"; -import titleShape from "../../../assets/images/shape/title-shape.svg"; +// import titleShape from "../../../assets/images/shape/title-shape.svg"; +import titleShape from "../../../assets/images/shape/login_straight_underline.svg"; import InputCom from "../../Helpers/Inputs/InputCom"; import AuthLayout from "../AuthLayout"; export default function Login() { const [checked, setValue] = useState(false); const [loginLoading, setLoginLoading] = useState(false); + + //login error state + const [loginError, setLoginError] = useState(false); + const rememberMe = () => { setValue(!checked); }; // email - const [email, setMail] = useState("example@quomodosoft.com"); + const [email, setMail] = useState("support@chiefsoft.com"); const handleEmail = (e) => { setMail(e.target.value); }; @@ -35,7 +40,8 @@ export default function Login() { setLoginLoading(false); }, 2000); } else { - toast.error("Invalid Credential"); + // toast.error("Invalid Credential"); + setLoginError(true) } } }; @@ -51,7 +57,7 @@ export default function Login() {

Log In

-
+
shape
@@ -60,7 +66,7 @@ export default function Login() { Remember Me @@ -127,6 +133,7 @@ export default function Login() { )} + {loginError &&

Invalid Credential

}

- Dont’t have an aceount ? + Don't have an account ? Sign up free @@ -151,4 +158,4 @@ export default function Login() { ); -} +} \ No newline at end of file