@djb25/digit-ui-module-ekyc 1.0.21 → 1.0.22

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.21",
3
+ "version": "1.0.22",
4
4
  "description": "Digit UI Module for Ekyc",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.modern.js",
@@ -9,11 +9,6 @@ import SearchFormFieldsComponents from "./SearchFormFieldsComponent";
9
9
  const AssignEkyc = () => {
10
10
  const tenantId = Digit.ULBService.getCurrentTenantId();
11
11
  const location = useLocation();
12
- const [sortParams, setSortParams] = useState([{ id: "", desc: true }]);
13
- const [pageOffset, setPageOffset] = useState(0);
14
- const [pageSize, setPageSize] = useState(10);
15
- let paginationParms = { limit: pageSize, offset: pageOffset, sortBy: sortParams?.[0]?.id, sortOrder: sortParams?.[0]?.desc ? "DESC" : "ASC" };
16
-
17
12
  const formInitValue = {
18
13
  filterForm: {},
19
14
  searchForm: {},
@@ -28,6 +23,13 @@ const AssignEkyc = () => {
28
23
  const [formState, dispatch] = useReducer(formReducer, formInitValue);
29
24
  const userDetails = Digit.SessionStorage.get("User");
30
25
 
26
+ let paginationParms = {
27
+ limit: formState?.tableForm?.limit || 10,
28
+ offset: formState?.tableForm?.offset || 0,
29
+ sortBy: formState?.tableForm?.sortBy || "createdTime",
30
+ sortOrder: formState?.tableForm?.sortOrder || "DESC",
31
+ };
32
+
31
33
  const { data: dashboardData, isLoading } = Digit.Hooks.fsm.useSurveyorSearch(
32
34
  tenantId,
33
35
  { ...paginationParms, status: "ACTIVE,DISABLED", vendorId: userDetails?.info?.uuid },