@djb25/digit-ui-module-ekyc 1.0.8 → 1.0.10
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 +3594 -4315
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/src/Module.js +37 -31
- package/src/components/ConnectionDetailsView.js +5 -3
- package/src/components/Dashboard.js +43 -0
- package/src/components/DesktopInbox.js +68 -184
- package/src/components/EKYCCard.js +35 -27
- package/src/components/Filter.js +48 -53
- package/src/components/SearchFormFieldsComponent.js +55 -0
- package/src/components/StatusCards.js +7 -3
- package/src/config/config.js +69 -0
- package/src/hook/useInboxTableConfig.js +134 -0
- package/src/pages/citizen/Home.js +41 -0
- package/src/pages/citizen/Inbox.js +255 -0
- package/src/pages/citizen/index.js +44 -65
- package/src/pages/employee/AadhaarVerification.js +473 -609
- package/src/pages/employee/AddressDetails.js +508 -733
- package/src/pages/employee/ConsumerDetails.js +512 -0
- package/src/pages/employee/Create.js +5 -1
- package/src/pages/employee/EKYCForm.js +117 -0
- package/src/pages/employee/Inbox.js +248 -140
- package/src/pages/employee/Mapping.js +640 -6
- package/src/pages/employee/MeterDetails.js +481 -471
- package/src/pages/employee/PropertyInfo.js +472 -562
- package/src/pages/employee/Review.js +268 -540
- package/src/pages/employee/Update.js +9 -0
- package/src/pages/employee/index.js +59 -94
|
@@ -8,83 +8,62 @@ import AddressDetails from "../employee/AddressDetails";
|
|
|
8
8
|
import PropertyInfo from "../employee/PropertyInfo";
|
|
9
9
|
import MeterDetails from "../employee/MeterDetails";
|
|
10
10
|
import Review from "../employee/Review";
|
|
11
|
+
import Home from "./Home";
|
|
12
|
+
import Dashboard from "../../components/Dashboard";
|
|
13
|
+
import Inbox from "./Inbox";
|
|
11
14
|
|
|
12
15
|
const CitizenApp = () => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
const { t } = useTranslation();
|
|
17
|
+
const location = useLocation();
|
|
18
|
+
const { path } = useRouteMatch();
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
sessionStorage.removeItem("revalidateddone");
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
const getBreadcrumbLabel = () => {
|
|
23
|
+
const pathname = location.pathname;
|
|
24
|
+
if (pathname.includes("/create-kyc")) return "EKYC_CREATE_KYC";
|
|
25
|
+
if (pathname.includes("/aadhaar-verification")) return "EKYC_AADHAAR_VERIFICATION";
|
|
26
|
+
if (pathname.includes("/address-details")) return "EKYC_ADDRESS_DETAILS";
|
|
27
|
+
if (pathname.includes("/property-info")) return "EKYC_PROPERTY_INFO";
|
|
28
|
+
if (pathname.includes("/meter-details")) return "EKYC_METER_DETAILS";
|
|
29
|
+
if (pathname.includes("/review")) return "EKYC_REVIEW";
|
|
30
|
+
return "EKYC_HOME";
|
|
31
|
+
};
|
|
29
32
|
|
|
30
|
-
|
|
31
|
-
{ icon: HomeIcon, path: "/digit-ui/citizen" },
|
|
32
|
-
{ label: t(getBreadcrumbLabel()) }
|
|
33
|
-
];
|
|
33
|
+
const breadcrumbs = [{ icon: HomeIcon, path: "/digit-ui/citizen" }, { label: t(getBreadcrumbLabel()) }];
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
return (
|
|
36
|
+
<AppContainer>
|
|
37
|
+
<div className="ground-container employee-app-container form-container">
|
|
38
|
+
<ModuleHeader
|
|
39
|
+
leftContent={
|
|
40
|
+
<React.Fragment>
|
|
41
|
+
<ArrowLeft className="icon" />
|
|
42
|
+
{t("CS_COMMON_BACK")}
|
|
43
|
+
</React.Fragment>
|
|
44
|
+
}
|
|
45
|
+
onLeftClick={() => window.history.back()}
|
|
46
|
+
breadcrumbs={breadcrumbs}
|
|
47
|
+
/>
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/>
|
|
49
|
+
<Switch>
|
|
50
|
+
<PrivateRoute exact path={`${path}`} component={() => <Home />} />
|
|
51
|
+
<PrivateRoute path={`${path}/dashboard`} component={() => <Dashboard />} />
|
|
52
|
+
<PrivateRoute path={`${path}/inbox`} component={() => <Inbox />} />
|
|
54
53
|
|
|
55
|
-
|
|
56
|
-
path={`${path}/aadhaar-verification`}
|
|
57
|
-
component={() => <AadhaarVerification />}
|
|
58
|
-
/>
|
|
54
|
+
<PrivateRoute path={`${path}/aadhaar-verification`} component={() => <AadhaarVerification />} />
|
|
59
55
|
|
|
60
|
-
|
|
61
|
-
path={`${path}/address-details`}
|
|
62
|
-
component={() => <AddressDetails />}
|
|
63
|
-
/>
|
|
56
|
+
<PrivateRoute path={`${path}/address-details`} component={() => <AddressDetails />} />
|
|
64
57
|
|
|
65
|
-
|
|
66
|
-
path={`${path}/property-info`}
|
|
67
|
-
component={() => <PropertyInfo />}
|
|
68
|
-
/>
|
|
58
|
+
<PrivateRoute path={`${path}/property-info`} component={() => <PropertyInfo />} />
|
|
69
59
|
|
|
70
|
-
|
|
71
|
-
path={`${path}/meter-details`}
|
|
72
|
-
component={() => <MeterDetails />}
|
|
73
|
-
/>
|
|
74
|
-
|
|
75
|
-
<PrivateRoute
|
|
76
|
-
path={`${path}/review`}
|
|
77
|
-
component={() => <Review />}
|
|
78
|
-
/>
|
|
60
|
+
<PrivateRoute path={`${path}/meter-details`} component={() => <MeterDetails />} />
|
|
79
61
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</div>
|
|
86
|
-
</AppContainer>
|
|
87
|
-
);
|
|
62
|
+
<PrivateRoute path={`${path}/review`} component={() => <Review />} />
|
|
63
|
+
</Switch>
|
|
64
|
+
</div>
|
|
65
|
+
</AppContainer>
|
|
66
|
+
);
|
|
88
67
|
};
|
|
89
68
|
|
|
90
69
|
export default CitizenApp;
|