summaryrefslogtreecommitdiff
path: root/client/src/routes
diff options
context:
space:
mode:
authorrohan09-raj <[email protected]>2022-07-28 17:56:15 +0530
committerrohan09-raj <[email protected]>2022-07-28 17:56:15 +0530
commit49be4dfc3d478ad02876c9238c48c513edac1e7c (patch)
treeb79c0bd1c2cb1582df0d03e88e4d03d097e9f0a0 /client/src/routes
parentffefbc1c2a382597c6d9f90977f8c907e26fbe2e (diff)
refactoring folder structure
Diffstat (limited to 'client/src/routes')
-rw-r--r--client/src/routes/index.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/client/src/routes/index.js b/client/src/routes/index.js
new file mode 100644
index 0000000..fc2aeea
--- /dev/null
+++ b/client/src/routes/index.js
@@ -0,0 +1,38 @@
+import React from 'react'
+import { Route, Routes } from 'react-router-dom'
+
+import Home from '../pages/Home/Home'
+import Enrollment from '../pages/Enrollment/Enrollment'
+import Update from '../pages/Update/Update'
+import PhotoCapture from '../pages/Enrollment/PhotoCapture/PhotoCapture'
+import DocumentScanner from '../pages/Enrollment/DocumentScanner/DocumentScanner'
+import FormTwo from '../pages/Enrollment/FormTwo/FormTwo'
+import Address from '../pages/Enrollment/Address/Address'
+
+const Index = () => {
+ return (
+ <Routes>
+ <Route exact path="/" element={<Home />} />
+ <Route path="enrollment">
+ <Route index element={<Enrollment />} />
+ <Route path="form2">
+ <Route index element={<FormTwo />} />
+ </Route>
+ <Route path="address">
+ <Route index element={<Address />} />
+ </Route>
+ <Route path="photo">
+ <Route index element={<PhotoCapture />} />
+ </Route>
+ <Route path="documents">
+ <Route index element={<DocumentScanner />} />
+ </Route>
+ </Route>
+ <Route path="update">
+ <Route index element={<Update />} />
+ </Route>
+ </Routes>
+ )
+}
+
+export default Index