From 4480f2d62865a585f8bbf0cd7122a25d0413bf2b Mon Sep 17 00:00:00 2001
From: rohan09-raj <rajrohan1914@gmail.com>
Date: Sun, 21 Aug 2022 01:46:36 +0530
Subject: fixed update components

---
 client/src/pages/Update/Biometric/Biometric.jsx | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

(limited to 'client/src/pages/Update/Biometric/Biometric.jsx')

diff --git a/client/src/pages/Update/Biometric/Biometric.jsx b/client/src/pages/Update/Biometric/Biometric.jsx
index 72aa1b7..6737ed9 100644
--- a/client/src/pages/Update/Biometric/Biometric.jsx
+++ b/client/src/pages/Update/Biometric/Biometric.jsx
@@ -11,20 +11,14 @@ const Biometric = () => {
   const [page, setPage] = useState(4)
   const { userData, oriUserData, setUserData } = userContext()
 
-  const [formData, setFormData] = useState({
-    photo: '',
-    irisScan: '',
-    fingerPrint: ''
-  })
-
   const conditionalComponent = () => {
     switch (page) {
       case 0:
-        return <PhotoCapture formData={formData} setFormData={setFormData} />
+        return <PhotoCapture />
       case 1:
-        return <Fingerprint formData={formData} setFormData={setFormData} />
+        return <Fingerprint />
       case 2:
-        return <IrisScan formData={formData} setFormData={setFormData} />
+        return <IrisScan />
       default:
         return <BiometricSelect page={page} setPage={setPage} />
     }
@@ -49,21 +43,21 @@ const Biometric = () => {
       case 0:
         return (
           <>
-            <SubmitButton onClick={() => handleSubmit()}> Next</SubmitButton>
+            <SubmitButton onClick={() => handleSubmit()} />
             <BackButton onClick={() => handleBack()} />
           </>
         )
       case 1:
         return (
           <>
-            <SubmitButton onClick={() => setPage(4)}> Next</SubmitButton>
+            <SubmitButton onClick={() => setPage(4)} />
             <BackButton onClick={() => setPage(page - 1)} />
           </>
         )
       case 2:
         return (
           <>
-            <SubmitButton onClick={() => setPage(4)}> Next</SubmitButton>
+            <SubmitButton onClick={() => setPage(4)} />
             <BackButton onClick={() => setPage(page - 1)} />
           </>
         )
-- 
cgit 

