summaryrefslogtreecommitdiff
path: root/client/src/pages
diff options
context:
space:
mode:
authorBlaster4385 <venkateshchaturvedi12@gmail.com>2022-08-16 16:35:00 +0530
committerBlaster4385 <venkateshchaturvedi12@gmail.com>2022-08-17 16:38:54 +0530
commita6489c671275fc9bf21ec6bdd7db4cb47da86f2c (patch)
treedb1e71104554c70a28ddd6dcb432716022599167 /client/src/pages
parent3e7f5cbd876b29c92fc1cda58aa54a9c591ef026 (diff)
Mega random super bullshit
Diffstat (limited to 'client/src/pages')
-rw-r--r--client/src/pages/Enrollment/Address/Address.jsx1
-rw-r--r--client/src/pages/Enrollment/Enrollment.jsx2
-rw-r--r--client/src/pages/Enrollment/FormOne/FormOne.jsx1
-rw-r--r--client/src/pages/Enrollment/FormTwo/FormTwo.jsx4
-rw-r--r--client/src/pages/Update/Demographic/Demographic.jsx2
5 files changed, 2 insertions, 8 deletions
diff --git a/client/src/pages/Enrollment/Address/Address.jsx b/client/src/pages/Enrollment/Address/Address.jsx
index 571d7ad..b6c3809 100644
--- a/client/src/pages/Enrollment/Address/Address.jsx
+++ b/client/src/pages/Enrollment/Address/Address.jsx
@@ -206,7 +206,6 @@ const Address = ({ formData, setFormData }) => {
})
}}
placeholder={t('ENTER_YOUR_AREA_PINCODE')}
- pattern="[0-9]+"
/>
</div>
</div>
diff --git a/client/src/pages/Enrollment/Enrollment.jsx b/client/src/pages/Enrollment/Enrollment.jsx
index 76461d2..d4b0a2a 100644
--- a/client/src/pages/Enrollment/Enrollment.jsx
+++ b/client/src/pages/Enrollment/Enrollment.jsx
@@ -16,7 +16,7 @@ import {
validMobileNumber,
validPincode,
validString
-} from '../../components/RegEx/RegEx'
+} from '../../constants/RegEx'
import { createUser } from '../../services/apiservice'
import { useTranslation } from 'react-i18next'
diff --git a/client/src/pages/Enrollment/FormOne/FormOne.jsx b/client/src/pages/Enrollment/FormOne/FormOne.jsx
index dd336d8..c59621d 100644
--- a/client/src/pages/Enrollment/FormOne/FormOne.jsx
+++ b/client/src/pages/Enrollment/FormOne/FormOne.jsx
@@ -59,7 +59,6 @@ const FormOne = ({ formData, setFormData }) => {
})
}}
placeholder={t('ENTER_YOUR_FULL_NAME')}
- pattern="[a-zA-z]+"
/>
<div className={styles.formone__gender}>
diff --git a/client/src/pages/Enrollment/FormTwo/FormTwo.jsx b/client/src/pages/Enrollment/FormTwo/FormTwo.jsx
index 6bc6223..205b3d9 100644
--- a/client/src/pages/Enrollment/FormTwo/FormTwo.jsx
+++ b/client/src/pages/Enrollment/FormTwo/FormTwo.jsx
@@ -21,9 +21,6 @@ const FormTwo = ({ formData, setFormData }) => {
})
}}
placeholder={t('ENTER_YOUR_MOBILE_NUMBER')}
- pattern="[0-9]+"
- maxLength="10"
- minLength="10"
/>
<Input
id="email"
@@ -37,7 +34,6 @@ const FormTwo = ({ formData, setFormData }) => {
})
}}
placeholder={t('ENTER_YOUR_EMAIL_ID')}
- pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"
/>
<SubmitButton />
</div>
diff --git a/client/src/pages/Update/Demographic/Demographic.jsx b/client/src/pages/Update/Demographic/Demographic.jsx
index 5be3e3b..6640cd3 100644
--- a/client/src/pages/Update/Demographic/Demographic.jsx
+++ b/client/src/pages/Update/Demographic/Demographic.jsx
@@ -10,7 +10,7 @@ import {
validMobileNumber,
validPincode,
validString
-} from '../../../components/RegEx/RegEx'
+} from '../../../constants/RegEx'
import UpdateSelect from '../UpdateSelect/UpdateSelect'
import { useTranslation } from 'react-i18next'
import { userContext } from '../../../context/User'