blob: 90fa118ef7d09b9a0f1a2a4e204ea9027f506b18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/* eslint-disable multiline-ternary */
import React from 'react'
import Header from '../../components/Header/Header'
import { useTranslation } from 'react-i18next'
import styles from './EnrollmentStatus.module.css'
import { Button } from '@mui/material'
import { useNavigate } from 'react-router-dom'
import { userContext } from '../../context/User'
import AudioAutoplay from '../../components/AudioAutoplay/AudioAutoplay'
const EnrollmentStatus = () => {
const { t } = useTranslation()
const navigate = useNavigate()
const { setAadhaarNumber, setEidNumber, userData } = userContext()
return (
<>
<Header subheading={t('ENROLLMENT_STATUS')} />
<div className={styles.status__container}>
<h3 className={styles.status__title}>{t('STATUS')}</h3>
{!userData?.verified ? (
<>
<AudioAutoplay
audio={`${process.env.PUBLIC_URL}/assets/audios/your-aadhaar-enrollment-status-pending`}
/>
<img
src={`${process.env.PUBLIC_URL}/assets/images/pending.svg`}
alt=""
height="200px"
width="200px"
/>
<h1 className={styles.status}>{t('PENDING')}</h1>
<p className={styles.status__content}>
{t('YOUR_AADHAAR_STATUS_IS_IN_PENDING_STATE')}
</p>
<p className={styles.status__content}>
{t('PLEASE_HAVE_PATIENCE')}
</p>
</>
) : (
<>
<AudioAutoplay
audio={`${process.env.PUBLIC_URL}/assets/audios/your-aadhaar-enrollment-status-approved`}
/>
<img
src={`${process.env.PUBLIC_URL}/assets/images/approved.svg`}
alt=""
height="200px"
width="200px"
/>
<h1 className={styles.status}>{t('APPROVED')}</h1>
<p className={styles.status__content}>
{t('YOUR_AADHAAR_STATUS_IS_APPROVED')}
</p>
</>
)}
<Button
variant="contained"
onClick={() => {
setAadhaarNumber(null)
setEidNumber(null)
navigate('/')
}}
sx={{ margin: '30px' }}
>
{t('BACK_TO_HOME')}
</Button>
</div>
</>
)
}
export default EnrollmentStatus
|