@djb25/digit-ui-module-ekyc 1.0.7 → 1.0.9
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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3513 -3789
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/src/Module.js +49 -22
- package/src/components/ConnectionDetailsView.js +183 -60
- package/src/components/DesktopInbox.js +47 -165
- package/src/components/EKYCCard.js +35 -23
- package/src/components/Filter.js +48 -53
- package/src/components/SearchConsumer.js +104 -94
- package/src/components/SearchFormFieldsComponent.js +55 -0
- package/src/components/StatusCards.js +100 -118
- package/src/config/config.js +69 -0
- package/src/hook/useInboxTableConfig.js +134 -0
- package/src/pages/citizen/index.js +90 -0
- package/src/pages/employee/AadhaarVerification.js +473 -609
- package/src/pages/employee/AddressDetails.js +508 -732
- package/src/pages/employee/ConsumerDetails.js +512 -0
- package/src/pages/employee/Create.js +24 -22
- package/src/pages/employee/Dashboard.js +43 -0
- package/src/pages/employee/EKYCForm.js +117 -0
- package/src/pages/employee/Inbox.js +248 -140
- package/src/pages/employee/Mapping.js +645 -0
- package/src/pages/employee/MeterDetails.js +496 -0
- package/src/pages/employee/PropertyInfo.js +471 -560
- package/src/pages/employee/Review.js +268 -484
- package/src/pages/employee/Update.js +9 -0
- package/src/pages/employee/index.js +60 -82
|
@@ -2,103 +2,81 @@ import { AppContainer, PrivateRoute, ModuleHeader, ArrowLeft, HomeIcon } from "@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { Switch, useLocation } from "react-router-dom";
|
|
5
|
+
import Dashboard from "./Dashboard";
|
|
5
6
|
import Inbox from "./Inbox";
|
|
7
|
+
import Mapping from "./Mapping";
|
|
6
8
|
import Create from "./Create";
|
|
7
|
-
|
|
8
|
-
import AddressDetails from "./AddressDetails";
|
|
9
|
-
import PropertyInfo from "./PropertyInfo";
|
|
9
|
+
|
|
10
10
|
import Review from "./Review";
|
|
11
|
+
import EKYCForm from "./EKYCForm";
|
|
11
12
|
|
|
12
13
|
const EmployeeApp = ({ path }) => {
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
const { t } = useTranslation();
|
|
15
|
+
const location = useLocation();
|
|
16
|
+
|
|
17
|
+
sessionStorage.removeItem("revalidateddone");
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
const getBreadcrumbLabel = () => {
|
|
20
|
+
const pathname = location.pathname;
|
|
21
|
+
if (pathname.includes("/dashboard")) return "ES_COMMON_INBOX";
|
|
22
|
+
if (pathname.includes("/create-kyc")) return "EKYC_CREATE_KYC";
|
|
23
|
+
if (pathname.includes("/k-details")) return "EKYC_K_DETAILS";
|
|
24
|
+
if (pathname.includes("/consumer-details")) return "EKYC_CONSUMER_DETAILS";
|
|
25
|
+
if (pathname.includes("/address-details")) return "EKYC_ADDRESS_DETAILS";
|
|
26
|
+
if (pathname.includes("/property-info")) return "EKYC_PROPERTY_INFO";
|
|
27
|
+
if (pathname.includes("/meter-details")) return "EKYC_METER_DETAILS";
|
|
28
|
+
if (pathname.includes("/review")) return "EKYC_REVIEW";
|
|
29
|
+
return "ES_COMMON_INBOX";
|
|
30
|
+
};
|
|
17
31
|
|
|
18
|
-
|
|
19
|
-
const pathname = location.pathname;
|
|
20
|
-
if (pathname.includes("/dashboard")) return "ES_COMMON_INBOX";
|
|
21
|
-
if (pathname.includes("/create-kyc")) return "EKYC_CREATE_KYC";
|
|
22
|
-
if (pathname.includes("/k-details")) return "EKYC_K_DETAILS";
|
|
23
|
-
if (pathname.includes("/aadhaar-verification")) return "EKYC_AADHAAR_VERIFICATION";
|
|
24
|
-
if (pathname.includes("/address-details")) return "EKYC_ADDRESS_DETAILS";
|
|
25
|
-
if (pathname.includes("/property-info")) return "EKYC_PROPERTY_INFO";
|
|
26
|
-
if (pathname.includes("/review")) return "EKYC_REVIEW";
|
|
27
|
-
return "ES_COMMON_INBOX";
|
|
28
|
-
};
|
|
32
|
+
const breadcrumbs = [{ icon: HomeIcon, path: "/digit-ui/employee" }, { label: t(getBreadcrumbLabel()) }];
|
|
29
33
|
|
|
30
|
-
|
|
31
|
-
{ icon: HomeIcon, path: "/digit-ui/employee" },
|
|
32
|
-
{ label: t(getBreadcrumbLabel()) }
|
|
33
|
-
];
|
|
34
|
+
const formStepRoutes = ["consumer-details", "address-details", "property-info", "meter-details"];
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
return (
|
|
37
|
+
<AppContainer>
|
|
38
|
+
<div className="ground-container employee-app-container form-container">
|
|
39
|
+
<ModuleHeader
|
|
40
|
+
leftContent={
|
|
41
|
+
<React.Fragment>
|
|
42
|
+
<ArrowLeft className="icon" />
|
|
43
|
+
Back
|
|
44
|
+
</React.Fragment>
|
|
45
|
+
}
|
|
46
|
+
onLeftClick={() => window.history.back()}
|
|
47
|
+
breadcrumbs={breadcrumbs}
|
|
48
|
+
/>
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
/>
|
|
50
|
+
<div className="employee-form">
|
|
51
|
+
<div className="employee-form-content">
|
|
52
|
+
<Switch>
|
|
53
|
+
<PrivateRoute
|
|
54
|
+
path={`${path}/dashboard`}
|
|
55
|
+
component={() => <Dashboard parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />}
|
|
56
|
+
/>
|
|
57
|
+
<PrivateRoute
|
|
58
|
+
path={`${path}/inbox`}
|
|
59
|
+
component={() => <Inbox parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />}
|
|
60
|
+
/>
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
path={`${path}/create-kyc`}
|
|
64
|
-
component={() => <Create />}
|
|
65
|
-
/>
|
|
62
|
+
<PrivateRoute path={`${path}/create-kyc`} component={() => <Create />} />
|
|
66
63
|
|
|
67
|
-
|
|
68
|
-
path={`${path}/aadhaar-verification`}
|
|
69
|
-
component={() => <AadhaarVerification />}
|
|
70
|
-
/>
|
|
64
|
+
<PrivateRoute path={`${path}/mapping`} component={() => <Mapping />} />
|
|
71
65
|
|
|
72
|
-
|
|
73
|
-
path={`${path}/address-details`}
|
|
74
|
-
component={() => <AddressDetails />}
|
|
75
|
-
/>
|
|
66
|
+
<PrivateRoute path={formStepRoutes.map((route) => `${path}/${route}`)} component={(props) => <EKYCForm {...props} path={path} />} />
|
|
76
67
|
|
|
77
|
-
|
|
78
|
-
path={`${path}/property-info`}
|
|
79
|
-
component={() => <PropertyInfo />}
|
|
80
|
-
/>
|
|
81
|
-
|
|
82
|
-
<PrivateRoute
|
|
83
|
-
path={`${path}/review`}
|
|
84
|
-
component={() => <Review />}
|
|
85
|
-
/>
|
|
68
|
+
<PrivateRoute path={`${path}/review`} component={() => <Review />} />
|
|
86
69
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/>
|
|
98
|
-
</Switch>
|
|
99
|
-
</div>
|
|
100
|
-
</AppContainer>
|
|
101
|
-
);
|
|
70
|
+
{/* <PrivateRoute
|
|
71
|
+
path={`${path}/`}
|
|
72
|
+
component={() => <Inbox parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />}
|
|
73
|
+
/> */}
|
|
74
|
+
</Switch>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</AppContainer>
|
|
79
|
+
);
|
|
102
80
|
};
|
|
103
81
|
|
|
104
82
|
export default EmployeeApp;
|