summaryrefslogtreecommitdiff
path: root/client/src/pages/Update/Otp/Otp.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/pages/Update/Otp/Otp.jsx')
-rw-r--r--client/src/pages/Update/Otp/Otp.jsx19
1 files changed, 16 insertions, 3 deletions
diff --git a/client/src/pages/Update/Otp/Otp.jsx b/client/src/pages/Update/Otp/Otp.jsx
index ca792fa..bf1b38d 100644
--- a/client/src/pages/Update/Otp/Otp.jsx
+++ b/client/src/pages/Update/Otp/Otp.jsx
@@ -11,6 +11,7 @@ import SubmitButton from '../../../components/SubmitButton/SubmitButton'
import { toast, ToastContainer } from 'react-toastify'
import PopUpModal from '../../../components/Modal/Modal'
import Spinner from '../../../components/Spinner/Spinner'
+import AudioAutoplay from '../../../components/AudioAutoplay/AudioAutoplay'
import styles from './Otp.module.css'
@@ -64,7 +65,7 @@ const Otp = () => {
}
if (isLoading) {
- return <Spinner heading='UPDATE'/>
+ return <Spinner heading="UPDATE" />
}
if (isError) {
@@ -75,7 +76,12 @@ const Otp = () => {
setOriUserData(data?.data)
}
- const description = ['CLICK_ON_SEND_OTP', 'YOU_WILL_RECIEVE_AN_OTP_ON_YOUR_MOBILE_NUMBER', 'YOU_CAN_RESEND_THE_OTP_AFTER_30_SECONDS_IF_YOU_HAVENT_RECEIVED_IT_YET', 'CLICK_ON_VERIFY_OTP_TO_VERIFY_YOUR_MOBILE_NUMBER']
+ const description = [
+ 'CLICK_ON_SEND_OTP',
+ 'YOU_WILL_RECIEVE_AN_OTP_ON_YOUR_MOBILE_NUMBER',
+ 'YOU_CAN_RESEND_THE_OTP_AFTER_30_SECONDS_IF_YOU_HAVENT_RECEIVED_IT_YET',
+ 'CLICK_ON_VERIFY_OTP_TO_VERIFY_YOUR_MOBILE_NUMBER'
+ ]
return (
<>
@@ -85,13 +91,20 @@ const Otp = () => {
theme={'colored'}
/>
<Header subheading={`${t('UPDATE')}`} />
+ <AudioAutoplay
+ audio={`${process.env.PUBLIC_URL}/assets/audios/otp-verification`}
+ />
<PopUpModal
title="VERIFY_YOUR_MOBILE_NUMBER"
image={`${process.env.PUBLIC_URL}/assets/images/otp.svg`}
description={
<>
<ul>
- {description.map((item) => (<li className="list__item" key='id'>{t(item)}</li>))}
+ {description.map((item) => (
+ <li className="list__item" key="id">
+ {t(item)}
+ </li>
+ ))}
</ul>
</>
}