From 02936bcdabb5e2550b12fa94d435fdbcff348f71 Mon Sep 17 00:00:00 2001 From: rohan09-raj Date: Sun, 21 Aug 2022 20:05:34 +0530 Subject: added modal --- client/src/pages/Enrollment/Address/Address.jsx | 21 ++++++++++++++++ .../src/pages/Enrollment/Agreement/Agreement.jsx | 12 ++++++++++ .../Enrollment/DocumentScanner/DocumentScanner.jsx | 28 ++++++++++++++++++++-- .../pages/Enrollment/Fingerprint/Fingerprint.jsx | 12 ++++++++++ client/src/pages/Enrollment/FormOne/FormOne.jsx | 23 ++++++++++++++++++ .../pages/Enrollment/FormOne/FormOne.module.css | 2 +- client/src/pages/Enrollment/FormTwo/FormTwo.jsx | 18 ++++++++++++++ client/src/pages/Enrollment/IrisScan/IrisScan.jsx | 12 ++++++++++ .../pages/Enrollment/PhotoCapture/PhotoCapture.jsx | 21 ++++++++++++++++ client/src/pages/Home/Home.jsx | 12 ++++++++-- 10 files changed, 156 insertions(+), 5 deletions(-) (limited to 'client/src/pages') diff --git a/client/src/pages/Enrollment/Address/Address.jsx b/client/src/pages/Enrollment/Address/Address.jsx index 6bf4044..78b0737 100644 --- a/client/src/pages/Enrollment/Address/Address.jsx +++ b/client/src/pages/Enrollment/Address/Address.jsx @@ -5,6 +5,7 @@ import { State, City } from 'country-state-city' import Select from 'react-select' import { userContext } from '../../../context/User' import { useTranslation } from 'react-i18next' +import PopUpModal from '../../../components/Modal/Modal' import styles from './Address.module.css' @@ -47,6 +48,26 @@ const Address = () => { return ( <>
+ +
    +
  • + Enter your details according to the relevant fields +
  • +
  • + State: Select the state you belong to. from the dropdown list +
  • +
  • + District: Select the district you belong to. from the dropdown + list +
  • +
+ + } + />
{ @@ -53,6 +54,17 @@ const Agreement = ({ unverified, setUnverified }) => { theme={'colored'} />
+ +
    +
  • INSTRUCTIONS TO BE ADDED
  • +
+ + } + />
{ @@ -147,7 +147,31 @@ const DocumentScanner = () => { return ( <>
- + +
    +
  • + Consists of 3 steps : +
      +
    • Proof of Identity:
    • +
    • Proof of Address:
    • +
    • Proof of Date of Birth:
    • +
    +
  • +
  • + Ensure that your documents are in the center of the frame +
  • +
  • + You won't be able to proceed until you have scanned all the + required documents +
  • +
+ + } + />
diff --git a/client/src/pages/Enrollment/Fingerprint/Fingerprint.jsx b/client/src/pages/Enrollment/Fingerprint/Fingerprint.jsx index 1860a2f..e2fe104 100644 --- a/client/src/pages/Enrollment/Fingerprint/Fingerprint.jsx +++ b/client/src/pages/Enrollment/Fingerprint/Fingerprint.jsx @@ -5,12 +5,24 @@ import styles from './Fingerprint.module.css' import { Button, Grid, Typography } from '@mui/material' import SubmitButton from '../../../components/SubmitButton/SubmitButton' import { useTranslation } from 'react-i18next' +import PopUpModal from '../../../components/Modal/Modal' const Fingerprint = () => { const { t } = useTranslation() return ( <>
+ +
    +
  • INSTRUCTIONS TO BE ADDED
  • +
+ + } + />
{ const { t } = useTranslation() @@ -33,6 +34,28 @@ const FormOne = () => { return ( <>
+ +
    +
  • + 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 +
  • +
+ + } + />
diff --git a/client/src/pages/Enrollment/FormOne/FormOne.module.css b/client/src/pages/Enrollment/FormOne/FormOne.module.css index fae8e9f..646ea12 100644 --- a/client/src/pages/Enrollment/FormOne/FormOne.module.css +++ b/client/src/pages/Enrollment/FormOne/FormOne.module.css @@ -45,7 +45,7 @@ } .formone__dob_input { - width: 300px; + width: 330px; margin: 10px 0px; padding: 11px 10px; border: 3px solid; diff --git a/client/src/pages/Enrollment/FormTwo/FormTwo.jsx b/client/src/pages/Enrollment/FormTwo/FormTwo.jsx index 0bce4bc..b4a53ed 100644 --- a/client/src/pages/Enrollment/FormTwo/FormTwo.jsx +++ b/client/src/pages/Enrollment/FormTwo/FormTwo.jsx @@ -5,6 +5,7 @@ import Header from '../../../components/Header/Header' import { userContext } from '../../../context/User' import styles from './FormTwo.module.css' +import PopUpModal from '../../../components/Modal/Modal' const FormTwo = () => { const { t } = useTranslation() @@ -12,6 +13,23 @@ const FormTwo = () => { return ( <>
+ +
    +
  • + Enter your 10 digit mobile number without any prefix or country + code +
  • +
  • + Enter your email address in proper format +
  • +
+ + } + />
{ @@ -11,6 +12,17 @@ const IrisScan = () => { return ( <>
+ +
    +
  • INSTRUCTIONS TO BE ADDED
  • +
+ + } + />
{ const navigate = useNavigate() @@ -22,6 +23,26 @@ const PhotoCapture = () => { return ( <>
+ +
    +
  • + Ensure that your photo is clear and in focus +
  • +
  • + Also, ensure that you are in the center of your photo +
  • +
  • + You won't be able to proceed until you have captured a + clear and centered photo +
  • +
+ + } + />
{!userData.photo ? ( { @@ -11,7 +11,15 @@ const Home = ({ page, setPage }) => { return ( <>
- +