@djb25/digit-ui-module-ekyc 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,9 +8,10 @@ import VendorDetails from "../../components/VendorDetails.jsx";
8
8
  import Inbox from "./Inbox";
9
9
  import Mapping from "./Mapping";
10
10
  import Create from "./Create";
11
-
12
11
  import Review from "../../components/Review";
13
12
  import EKYCForm from "./EKYCForm";
13
+ import SurveyorDetailsCard from "../../components/SurveyorDetailsCard.js";
14
+ import AssignEkyc from "../../components/AssignEkyc.js";
14
15
 
15
16
  const EmployeeApp = ({ path }) => {
16
17
  const { t } = useTranslation();
@@ -50,93 +51,101 @@ const EmployeeApp = ({ path }) => {
50
51
  />
51
52
 
52
53
  <div className="employee-form">
53
- <div className="employee-form-content">
54
- <Switch>
55
- <PrivateRoute
56
- path={`${path}/dashboard`}
57
- component={() => (
58
- <LayoutWrapper layoutClass="normal">
59
- <Dashboard parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />
60
- </LayoutWrapper>
61
- )}
62
- />
63
- <PrivateRoute
64
- path={`${path}/inbox`}
65
- component={() => (
66
- <LayoutWrapper layoutClass="normal">
67
- <Inbox parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />
68
- </LayoutWrapper>
69
- )}
70
- />
71
-
72
- <PrivateRoute
73
- path={`${path}/create-kyc`}
74
- component={() => (
75
- <LayoutWrapper layoutClass="normal">
76
- <Create />
77
- </LayoutWrapper>
78
- )}
79
- />
80
-
81
- <PrivateRoute
82
- path={`${path}/mapping`}
83
- component={() => (
84
- <LayoutWrapper layoutClass="normal">
85
- <Mapping />
86
- </LayoutWrapper>
87
- )}
88
- />
89
- <PrivateRoute
90
- path={`${path}/assign`}
91
- component={() => (
92
- <LayoutWrapper layoutClass="normal">
93
- <Mapping />
94
- </LayoutWrapper>
95
- )}
96
- />
97
-
98
- <PrivateRoute
99
- path={formStepRoutes.map((route) => `${path}/${route}`)}
100
- component={(props) => (
101
- <LayoutWrapper layoutClass="normal">
102
- <EKYCForm {...props} path={path} />
103
- </LayoutWrapper>
104
- )}
105
- />
106
-
107
- <PrivateRoute
108
- path={`${path}/review`}
109
- component={() => (
110
- <LayoutWrapper layoutClass="normal">
111
- <Review />
112
- </LayoutWrapper>
113
- )}
114
- />
115
-
116
- <PrivateRoute
117
- path={`${path}/ceo-dashboard`}
118
- component={() => (
119
- <LayoutWrapper layoutClass="normal">
120
- <CeoDashboard />
121
- </LayoutWrapper>
122
- )}
123
- />
124
-
125
- <PrivateRoute
126
- path={`${path}/vendors/:vendorId`}
127
- component={() => (
128
- <LayoutWrapper layoutClass="normal">
129
- <VendorDetails />
130
- </LayoutWrapper>
131
- )}
132
- />
133
-
134
- {/* <PrivateRoute
54
+ <Switch>
55
+ <PrivateRoute
56
+ path={`${path}/dashboard`}
57
+ component={() => (
58
+ <LayoutWrapper layoutClass="normal">
59
+ <Dashboard parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />
60
+ </LayoutWrapper>
61
+ )}
62
+ />
63
+ <PrivateRoute
64
+ path={`${path}/inbox`}
65
+ component={() => (
66
+ <LayoutWrapper layoutClass="normal">
67
+ <Inbox parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />
68
+ </LayoutWrapper>
69
+ )}
70
+ />
71
+
72
+ <PrivateRoute
73
+ path={`${path}/create-kyc`}
74
+ component={() => (
75
+ <LayoutWrapper layoutClass="normal">
76
+ <Create />
77
+ </LayoutWrapper>
78
+ )}
79
+ />
80
+
81
+ <PrivateRoute
82
+ path={`${path}/mapping`}
83
+ component={() => (
84
+ <LayoutWrapper layoutClass="normal">
85
+ <Mapping />
86
+ </LayoutWrapper>
87
+ )}
88
+ />
89
+ <PrivateRoute
90
+ path={`${path}/assign`}
91
+ exact
92
+ component={() => (
93
+ <LayoutWrapper layoutClass="normal">
94
+ <AssignEkyc />
95
+ </LayoutWrapper>
96
+ )}
97
+ />
98
+ <PrivateRoute
99
+ path={`${path}/assign/surveyor-details/:id`}
100
+ exact
101
+ component={() => (
102
+ <LayoutWrapper layoutClass="action">
103
+ <SurveyorDetailsCard />
104
+ </LayoutWrapper>
105
+ )}
106
+ />
107
+
108
+ <PrivateRoute
109
+ path={formStepRoutes.map((route) => `${path}/${route}`)}
110
+ component={(props) => (
111
+ <LayoutWrapper layoutClass="normal">
112
+ <EKYCForm {...props} path={path} />
113
+ </LayoutWrapper>
114
+ )}
115
+ />
116
+
117
+ <PrivateRoute
118
+ path={`${path}/review/:kno`}
119
+ component={() => (
120
+ <LayoutWrapper layoutClass="action">
121
+ <Review />
122
+ </LayoutWrapper>
123
+ )}
124
+ />
125
+
126
+ <PrivateRoute
127
+ path={`${path}/ceo-dashboard`}
128
+ component={() => (
129
+ <LayoutWrapper layoutClass="normal">
130
+ <CeoDashboard />
131
+ </LayoutWrapper>
132
+ )}
133
+ />
134
+
135
+ <PrivateRoute
136
+ path={`${path}/vendors/:vendorId`}
137
+ component={() => (
138
+ <LayoutWrapper layoutClass="normal">
139
+ <VendorDetails />
140
+ </LayoutWrapper>
141
+ )}
142
+ />
143
+
144
+ {/* <PrivateRoute
135
145
  path={`${path}/`}
136
146
  component={() => <Inbox parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />}
137
147
  /> */}
138
- </Switch>
139
- </div>
148
+ </Switch>
140
149
  </div>
141
150
  </div>
142
151
  </AppContainer>