@djb25/digit-ui-module-ekyc 1.0.16 → 1.0.18
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 +9 -10
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AssignEkyc.js +0 -17
- package/src/components/AssignEkycModal.js +208 -297
- package/src/pages/employee/Inbox.js +10 -10
package/dist/index.modern.js
CHANGED
|
@@ -2222,7 +2222,7 @@ const Inbox = ({
|
|
|
2222
2222
|
filterComponent,
|
|
2223
2223
|
isInbox
|
|
2224
2224
|
}) => {
|
|
2225
|
-
var _formState$tableForm3, _formState$tableForm4, _formState$searchForm3, _formState$searchForm4
|
|
2225
|
+
var _formState$tableForm3, _formState$tableForm4, _formState$searchForm3, _formState$searchForm4;
|
|
2226
2226
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
2227
2227
|
const location = useLocation();
|
|
2228
2228
|
const formInitValue = {
|
|
@@ -2246,9 +2246,9 @@ const Inbox = ({
|
|
|
2246
2246
|
};
|
|
2247
2247
|
}, [tenantId, formState === null || formState === void 0 ? void 0 : (_formState$tableForm3 = formState.tableForm) === null || _formState$tableForm3 === void 0 ? void 0 : _formState$tableForm3.offset, formState === null || formState === void 0 ? void 0 : (_formState$tableForm4 = formState.tableForm) === null || _formState$tableForm4 === void 0 ? void 0 : _formState$tableForm4.limit, formState === null || formState === void 0 ? void 0 : formState.searchForm]);
|
|
2248
2248
|
const {
|
|
2249
|
-
isLoading,
|
|
2250
|
-
data:
|
|
2251
|
-
} = Digit.Hooks.ekyc.
|
|
2249
|
+
isLoading: isListLoading,
|
|
2250
|
+
data: listData = {}
|
|
2251
|
+
} = Digit.Hooks.ekyc.useEkycApplicationList({}, queryParams, {
|
|
2252
2252
|
enabled: !!tenantId,
|
|
2253
2253
|
keepPreviousData: true
|
|
2254
2254
|
});
|
|
@@ -2271,13 +2271,12 @@ const Inbox = ({
|
|
|
2271
2271
|
keepPreviousData: true
|
|
2272
2272
|
});
|
|
2273
2273
|
const sourceData = useMemo(() => {
|
|
2274
|
-
var _dashboardData$dashbo;
|
|
2275
2274
|
if (isSearchActive) {
|
|
2276
2275
|
if (!searchData) return [];
|
|
2277
2276
|
return [searchData];
|
|
2278
2277
|
}
|
|
2279
|
-
return (
|
|
2280
|
-
}, [isSearchActive, searchData,
|
|
2278
|
+
return (listData === null || listData === void 0 ? void 0 : listData.consumerList) || [];
|
|
2279
|
+
}, [isSearchActive, searchData, listData]);
|
|
2281
2280
|
const filteredData = useMemo(() => {
|
|
2282
2281
|
return (sourceData || []).map(item => {
|
|
2283
2282
|
const isSearchItem = !!item.connectionDetails;
|
|
@@ -2306,7 +2305,7 @@ const Inbox = ({
|
|
|
2306
2305
|
};
|
|
2307
2306
|
});
|
|
2308
2307
|
}, [sourceData]);
|
|
2309
|
-
const totalRecords = (
|
|
2308
|
+
const totalRecords = (listData === null || listData === void 0 ? void 0 : listData.totalCount) || 0;
|
|
2310
2309
|
const checkPathName = location.pathname.includes("ekyc/inbox");
|
|
2311
2310
|
const PropsForInboxLinks = {
|
|
2312
2311
|
headerText: checkPathName ? "EKYC_MODULE" : "MODULE_SW"
|
|
@@ -2465,7 +2464,7 @@ const Inbox = ({
|
|
|
2465
2464
|
}
|
|
2466
2465
|
}
|
|
2467
2466
|
});
|
|
2468
|
-
const isInboxLoading =
|
|
2467
|
+
const isInboxLoading = isListLoading || isSearchLoading;
|
|
2469
2468
|
return /*#__PURE__*/React.createElement("div", {
|
|
2470
2469
|
className: "app-container"
|
|
2471
2470
|
}, /*#__PURE__*/React.createElement(InboxComposer, _extends({
|
|
@@ -2474,7 +2473,7 @@ const Inbox = ({
|
|
|
2474
2473
|
}, propsForSearchForm, propsForFilterForm, {
|
|
2475
2474
|
propsForInboxTable,
|
|
2476
2475
|
formState,
|
|
2477
|
-
countData:
|
|
2476
|
+
countData: listData
|
|
2478
2477
|
})));
|
|
2479
2478
|
};
|
|
2480
2479
|
|