@djb25/digit-ui-module-ekyc 1.0.18 → 1.0.19
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 +212 -236
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AssignEkycModal.js +5 -4
- package/src/pages/employee/Inbox.js +11 -8
package/package.json
CHANGED
|
@@ -49,10 +49,6 @@ const AssignEkycModal = ({ surveyor, closeModal }) => {
|
|
|
49
49
|
|
|
50
50
|
const { data: applicationData, isLoading } = Digit.Hooks.ekyc.useEkycApplicationList(
|
|
51
51
|
{
|
|
52
|
-
tenantId: "dl.djb",
|
|
53
|
-
offset: currentPage * pageSize,
|
|
54
|
-
limit: pageSize,
|
|
55
|
-
|
|
56
52
|
...(debouncedFilters.kno && {
|
|
57
53
|
kno: debouncedFilters.kno,
|
|
58
54
|
}),
|
|
@@ -81,6 +77,11 @@ const AssignEkycModal = ({ surveyor, closeModal }) => {
|
|
|
81
77
|
pincode: debouncedFilters.pincode,
|
|
82
78
|
}),
|
|
83
79
|
},
|
|
80
|
+
{
|
|
81
|
+
tenantId: "dl.djb",
|
|
82
|
+
offset: currentPage * pageSize,
|
|
83
|
+
limit: pageSize,
|
|
84
|
+
},
|
|
84
85
|
{
|
|
85
86
|
keepPreviousData: true,
|
|
86
87
|
}
|
|
@@ -23,16 +23,19 @@ const Inbox = ({ parentRoute, businessService = "EKYC", initialStates = {}, filt
|
|
|
23
23
|
|
|
24
24
|
const [formState, dispatch] = useReducer(formReducer, formInitValue);
|
|
25
25
|
|
|
26
|
+
const filters = useMemo(() => {
|
|
27
|
+
return formState?.searchForm || {};
|
|
28
|
+
}, [formState?.searchForm]);
|
|
29
|
+
|
|
26
30
|
const queryParams = useMemo(() => {
|
|
27
31
|
return {
|
|
28
32
|
tenantId,
|
|
29
33
|
offset: formState?.tableForm?.offset || 0,
|
|
30
34
|
limit: formState?.tableForm?.limit || 10,
|
|
31
|
-
search: formState?.searchForm || {},
|
|
32
35
|
};
|
|
33
|
-
}, [tenantId, formState?.tableForm?.offset, formState?.tableForm?.limit
|
|
36
|
+
}, [tenantId, formState?.tableForm?.offset, formState?.tableForm?.limit]);
|
|
34
37
|
|
|
35
|
-
const { isLoading: isListLoading, data: listData = {} } = Digit.Hooks.ekyc.useEkycApplicationList(
|
|
38
|
+
const { isLoading: isListLoading, data: listData = {} } = Digit.Hooks.ekyc.useEkycApplicationList(filters, queryParams, {
|
|
36
39
|
enabled: !!tenantId,
|
|
37
40
|
keepPreviousData: true,
|
|
38
41
|
});
|
|
@@ -247,11 +250,11 @@ const Inbox = ({ parentRoute, businessService = "EKYC", initialStates = {}, filt
|
|
|
247
250
|
propsForInboxTable,
|
|
248
251
|
// propsForInboxMobileCards,
|
|
249
252
|
formState,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
countData: listData,
|
|
254
|
+
}}
|
|
255
|
+
/>
|
|
256
|
+
</div>
|
|
257
|
+
);
|
|
255
258
|
};
|
|
256
259
|
|
|
257
260
|
export default Inbox;
|