@djb25/digit-ui-module-ekyc 1.0.12 → 1.0.13
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.css +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1468 -13
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/src/Module.js +3 -0
- package/src/components/CeoDashboard.js +1 -5
- package/src/pages/employee/index.js +11 -0
package/package.json
CHANGED
package/src/Module.js
CHANGED
|
@@ -13,6 +13,7 @@ import PropertyInfo from "./components/PropertyInfo";
|
|
|
13
13
|
import MeterDetails from "./components/MeterDetails";
|
|
14
14
|
import AadhaarVerification from "./components/AadhaarVerification";
|
|
15
15
|
import AddressDetails from "./components/AddressDetails";
|
|
16
|
+
import CeoDashboard from "./components/CeoDashboard";
|
|
16
17
|
export const EkycModule = ({ stateCode, userType, tenants }) => {
|
|
17
18
|
|
|
18
19
|
const { path, url } = useRouteMatch();
|
|
@@ -69,6 +70,8 @@ const componentsToRegister = {
|
|
|
69
70
|
AddressDetails,
|
|
70
71
|
PropertyInfo,
|
|
71
72
|
MeterDetails,
|
|
73
|
+
CeoDashboard,
|
|
74
|
+
|
|
72
75
|
};
|
|
73
76
|
|
|
74
77
|
export const initEkycComponents = () => {
|
|
@@ -2,10 +2,6 @@ import React, { useState, useMemo } from "react";
|
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import "./analytics/styles/Dashboard.css";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
// Hooks
|
|
7
|
-
import useInboxRouting from "./analytics/hooks/useInboxRouting";
|
|
8
|
-
|
|
9
5
|
// Components
|
|
10
6
|
import DashboardLayout from "./analytics/components/DashboardLayout";
|
|
11
7
|
import FilterBar from "./analytics/components/FilterBar";
|
|
@@ -22,7 +18,7 @@ import EmptyState from "./analytics/components/EmptyState";
|
|
|
22
18
|
|
|
23
19
|
const CeoDashboard = () => {
|
|
24
20
|
const { t } = useTranslation();
|
|
25
|
-
const { routeToInbox } = useInboxRouting();
|
|
21
|
+
const { routeToInbox } = Digit.Hooks.ekyc.useInboxRouting();
|
|
26
22
|
|
|
27
23
|
// 1. Dashboard State
|
|
28
24
|
const [activeRole, setActiveRole] = useState("CEO");
|
|
@@ -16,6 +16,8 @@ const EmployeeApp = ({ path }) => {
|
|
|
16
16
|
|
|
17
17
|
sessionStorage.removeItem("revalidateddone");
|
|
18
18
|
|
|
19
|
+
const CeoDashboard = Digit.ComponentRegistryService.getComponent("CeoDashboard");
|
|
20
|
+
|
|
19
21
|
const getBreadcrumbLabel = () => {
|
|
20
22
|
const pathname = location.pathname;
|
|
21
23
|
if (pathname.includes("/dashboard")) return "ES_COMMON_INBOX";
|
|
@@ -103,6 +105,15 @@ const EmployeeApp = ({ path }) => {
|
|
|
103
105
|
)}
|
|
104
106
|
/>
|
|
105
107
|
|
|
108
|
+
<PrivateRoute
|
|
109
|
+
path={`${path}/ceo-dashboard`}
|
|
110
|
+
component={() => (
|
|
111
|
+
<LayoutWrapper layoutClass="normal">
|
|
112
|
+
<CeoDashboard />
|
|
113
|
+
</LayoutWrapper>
|
|
114
|
+
)}
|
|
115
|
+
/>
|
|
116
|
+
|
|
106
117
|
{/* <PrivateRoute
|
|
107
118
|
path={`${path}/`}
|
|
108
119
|
component={() => <Inbox parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />}
|