diff --git a/src/components/AuthPages/ForgetPwdResponse.jsx b/src/components/AuthPages/ForgetPwdResponse.jsx index 10cc364..f17934f 100644 --- a/src/components/AuthPages/ForgetPwdResponse.jsx +++ b/src/components/AuthPages/ForgetPwdResponse.jsx @@ -1,6 +1,8 @@ import React from 'react' +import { useNavigate } from 'react-router-dom' const ForgetPwdResponse = ({title, message, type}) => { + const navigate = useNavigate() return ( <>
diff --git a/src/components/AuthPages/ForgotPassword/index.jsx b/src/components/AuthPages/ForgotPassword/index.jsx index d336a16..199e8c9 100644 --- a/src/components/AuthPages/ForgotPassword/index.jsx +++ b/src/components/AuthPages/ForgotPassword/index.jsx @@ -154,20 +154,6 @@ export default function ForgotPassword() { {msgError}
)} - {/* {msgSuccess && ( -
- If we find your email, you will receive a link to reset your - password. Please use or{" "} - - contact form - {" "} - if you did not get our message after few minutes. -
- )} */} -
+ {requestStatus.loading ? + + : + !requestStatus.loading && requestStatus.status ?
{linkSuccess == null ? <> @@ -149,16 +171,22 @@ const VerifyPassword = () => { : }
+ : +
+ +
+ }
@@ -234,25 +262,3 @@ const SuccessfulComponent = ({ ); - -const ErrorComponent = ({ onClick }) => ( -
-
-

- This error occurs because you have already used this link or the link - has broken/expired. Start with the reset process again. If it doesn't - work, try to create the account from the start. -

-
- -
- -
-
-);