@djb25/digit-ui-module-ekyc 1.0.15 → 1.0.17
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 +10 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/src/pages/citizen/index.js +1 -1
- package/src/pages/employee/Inbox.js +10 -10
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@ const CitizenApp = () => {
|
|
|
35
35
|
const breadcrumbs = [{ icon: HomeIcon, path: "/digit-ui/citizen" }, { label: t(getBreadcrumbLabel()) }];
|
|
36
36
|
|
|
37
37
|
const roles = Digit.SessionStorage.get("User")?.info?.roles.map((ele) => ele.code);
|
|
38
|
-
const isEkyAction = (!roles
|
|
38
|
+
const isEkyAction = (!roles?.includes("EKYC_SURVEYOR") || roles?.includes("EMPLOYEE"))
|
|
39
39
|
return (
|
|
40
40
|
<React.Fragment>
|
|
41
41
|
<div className="ground-container form-container">
|
|
@@ -32,7 +32,7 @@ const Inbox = ({ parentRoute, businessService = "EKYC", initialStates = {}, filt
|
|
|
32
32
|
};
|
|
33
33
|
}, [tenantId, formState?.tableForm?.offset, formState?.tableForm?.limit, formState?.searchForm]);
|
|
34
34
|
|
|
35
|
-
const { isLoading, data:
|
|
35
|
+
const { isLoading: isListLoading, data: listData = {} } = Digit.Hooks.ekyc.useEkycApplicationList({}, queryParams, {
|
|
36
36
|
enabled: !!tenantId,
|
|
37
37
|
keepPreviousData: true,
|
|
38
38
|
});
|
|
@@ -64,8 +64,8 @@ const Inbox = ({ parentRoute, businessService = "EKYC", initialStates = {}, filt
|
|
|
64
64
|
return [searchData];
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
return
|
|
68
|
-
}, [isSearchActive, searchData,
|
|
67
|
+
return listData?.consumerList || [];
|
|
68
|
+
}, [isSearchActive, searchData, listData]);
|
|
69
69
|
|
|
70
70
|
const filteredData = useMemo(() => {
|
|
71
71
|
return (sourceData || []).map((item) => {
|
|
@@ -99,7 +99,7 @@ const Inbox = ({ parentRoute, businessService = "EKYC", initialStates = {}, filt
|
|
|
99
99
|
});
|
|
100
100
|
}, [sourceData]);
|
|
101
101
|
|
|
102
|
-
const totalRecords =
|
|
102
|
+
const totalRecords = listData?.totalCount || 0;
|
|
103
103
|
|
|
104
104
|
const checkPathName = location.pathname.includes("ekyc/inbox");
|
|
105
105
|
const PropsForInboxLinks = {
|
|
@@ -233,7 +233,7 @@ const Inbox = ({ parentRoute, businessService = "EKYC", initialStates = {}, filt
|
|
|
233
233
|
},
|
|
234
234
|
});
|
|
235
235
|
|
|
236
|
-
const isInboxLoading =
|
|
236
|
+
const isInboxLoading = isListLoading || isSearchLoading;
|
|
237
237
|
|
|
238
238
|
return (
|
|
239
239
|
<div className="app-container">
|
|
@@ -247,11 +247,11 @@ const Inbox = ({ parentRoute, businessService = "EKYC", initialStates = {}, filt
|
|
|
247
247
|
propsForInboxTable,
|
|
248
248
|
// propsForInboxMobileCards,
|
|
249
249
|
formState,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
250
|
+
countData: listData,
|
|
251
|
+
}}
|
|
252
|
+
/>
|
|
253
|
+
</div>
|
|
254
|
+
);
|
|
255
255
|
};
|
|
256
256
|
|
|
257
257
|
export default Inbox;
|