summaryrefslogtreecommitdiff
path: root/client/src/pages/Enrollment/FormOne/FormOne.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/pages/Enrollment/FormOne/FormOne.jsx')
-rw-r--r--client/src/pages/Enrollment/FormOne/FormOne.jsx35
1 files changed, 31 insertions, 4 deletions
diff --git a/client/src/pages/Enrollment/FormOne/FormOne.jsx b/client/src/pages/Enrollment/FormOne/FormOne.jsx
index f34a2ea..a1d4b7d 100644
--- a/client/src/pages/Enrollment/FormOne/FormOne.jsx
+++ b/client/src/pages/Enrollment/FormOne/FormOne.jsx
@@ -7,6 +7,10 @@ import styles from './FormOne.module.css'
import { userContext } from '../../../context/User'
import PopUpModal from '../../../components/Modal/Modal'
import AudioAutoplay from '../../../components/AudioAutoplay/AudioAutoplay'
+import { MobileDatePicker } from '@mui/x-date-pickers/MobileDatePicker'
+import { TextField } from '@mui/material'
+import { AdapterMoment } from '@mui/x-date-pickers/AdapterMoment'
+import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'
const FormOne = () => {
const { t } = useTranslation()
@@ -32,7 +36,12 @@ const FormOne = () => {
}
}, [userData.gender])
- const description = ['SELECT_YOUR_RESIDENCY_BY_SELECTING_THE_APPROPRIATE_CHECKBOX', 'ENTER_YOUR_FULL_NAME_WITHOUT_ANY_TITLE_OR_SALUTATION', 'SELECT_YOUR_GENDER_BY_CLICKING_ON_THE_APPROPRIATE_CARD', 'SELECT_YOUR_DATE_OF_BIRTH_FROM_THE_PROVIDED_CALENDER']
+ const description = [
+ 'SELECT_YOUR_RESIDENCY_BY_SELECTING_THE_APPROPRIATE_CHECKBOX',
+ 'ENTER_YOUR_FULL_NAME_WITHOUT_ANY_TITLE_OR_SALUTATION',
+ 'SELECT_YOUR_GENDER_BY_CLICKING_ON_THE_APPROPRIATE_CARD',
+ 'SELECT_YOUR_DATE_OF_BIRTH_FROM_THE_PROVIDED_CALENDER'
+ ]
return (
<>
@@ -44,7 +53,11 @@ const FormOne = () => {
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>
</>
}
@@ -145,7 +158,21 @@ const FormOne = () => {
<div className={styles.formone__dob}>
<label htmlFor="dob">{t('DATE_OF_BIRTH')}</label>
- <input
+ <LocalizationProvider dateAdapter={AdapterMoment}>
+ <MobileDatePicker
+ label="Date mobile"
+ inputFormat="mm/dd/yyyy"
+ value={userData.dob}
+ onChange={(e) => {
+ setUserData({
+ ...userData,
+ dob: e
+ })
+ }}
+ renderInput={(params) => <TextField {...params} />}
+ />
+ </LocalizationProvider>
+ {/* <input
className={styles.formone__dob_input}
type="date"
id="dob"
@@ -158,7 +185,7 @@ const FormOne = () => {
})
}}
required
- />
+ /> */}
</div>
</div>
</>