summaryrefslogtreecommitdiff
path: root/client/src/pages/Update/Agreement/Agreement.jsx
diff options
context:
space:
mode:
authorrohan09-raj <rajrohan1914@gmail.com>2022-08-23 14:39:22 +0530
committerrohan09-raj <rajrohan1914@gmail.com>2022-08-23 14:39:22 +0530
commitffd2c78b86111a5d1f7914e7dab4ffc946cb5287 (patch)
treea9e672e566668e89a71d947c5aac30dca1d8c3d1 /client/src/pages/Update/Agreement/Agreement.jsx
parent0602eb75a81966770c9fbc09b7685522e5b94d0c (diff)
check status feature
Diffstat (limited to 'client/src/pages/Update/Agreement/Agreement.jsx')
-rw-r--r--client/src/pages/Update/Agreement/Agreement.jsx24
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 &quot;SEND OTP&quot;</li>
+ <li className="list__item">
+ You will recieve an OTP on your entered mobile number
+ </li>
+ <li className="list__item">
+ You can &quot;RESEND&quot; the OTP after 30 seconds, if you
+ haven&apos;t received it yet.
+ </li>
+ <li className="list__item">
+ Click on &quot;VERIFY OTP&quot; to verify your mobile number
+ </li>
+ </ul>
+ </>
+ }
+ />
<div className={styles.card__container}>
<CardAgreement
image={`${process.env.PUBLIC_URL}/assets/images/agreement.svg`}