diff options
author | rohan09-raj <rajrohan1914@gmail.com> | 2022-08-23 14:39:22 +0530 |
---|---|---|
committer | rohan09-raj <rajrohan1914@gmail.com> | 2022-08-23 14:39:22 +0530 |
commit | ffd2c78b86111a5d1f7914e7dab4ffc946cb5287 (patch) | |
tree | a9e672e566668e89a71d947c5aac30dca1d8c3d1 /client/src/pages/Update/Agreement/Agreement.jsx | |
parent | 0602eb75a81966770c9fbc09b7685522e5b94d0c (diff) |
check status feature
Diffstat (limited to 'client/src/pages/Update/Agreement/Agreement.jsx')
-rw-r--r-- | client/src/pages/Update/Agreement/Agreement.jsx | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/client/src/pages/Update/Agreement/Agreement.jsx b/client/src/pages/Update/Agreement/Agreement.jsx index e49bbe6..22ffa80 100644 --- a/client/src/pages/Update/Agreement/Agreement.jsx +++ b/client/src/pages/Update/Agreement/Agreement.jsx @@ -11,6 +11,7 @@ import { sendOTP, updateUser, sendMessage } from '../../../services/apiservice' import { userContext } from '../../../context/User' import { useMutation } from 'react-query' import { ToastContainer, toast } from 'react-toastify' +import PopUpModal from '../../../components/Modal/Modal' import 'react-toastify/dist/ReactToastify.css' const Agreement = () => { @@ -24,7 +25,7 @@ const Agreement = () => { const { userData } = userContext() const updateUse = useMutation( - () => updateUser(userData._id, { ...userData }), + () => updateUser(userData._id, { ...userData, isUpdating: true }), { onSuccess: () => { setConfirm.mutate({ @@ -80,6 +81,27 @@ const Agreement = () => { theme={'colored'} /> <Header subheading={t('ENROLLMENT')} /> + <PopUpModal + title="Verify your mobile number" + image={`${process.env.PUBLIC_URL}/assets/images/agreement.svg`} + description={ + <> + <ul> + <li className="list__item">Click on "SEND OTP"</li> + <li className="list__item"> + You will recieve an OTP on your entered mobile number + </li> + <li className="list__item"> + You can "RESEND" the OTP after 30 seconds, if you + haven't received it yet. + </li> + <li className="list__item"> + Click on "VERIFY OTP" to verify your mobile number + </li> + </ul> + </> + } + /> <div className={styles.card__container}> <CardAgreement image={`${process.env.PUBLIC_URL}/assets/images/agreement.svg`} |