@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djb25/digit-ui-module-ekyc",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Digit UI Module for Ekyc",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.modern.js",
@@ -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, formState?.searchForm]);
36
+ }, [tenantId, formState?.tableForm?.offset, formState?.tableForm?.limit]);
34
37
 
35
- const { isLoading: isListLoading, data: listData = {} } = Digit.Hooks.ekyc.useEkycApplicationList({}, queryParams, {
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
- countData: listData,
251
- }}
252
- />
253
- </div>
254
- );
253
+ countData: listData,
254
+ }}
255
+ />
256
+ </div>
257
+ );
255
258
  };
256
259
 
257
260
  export default Inbox;