@djb25/digit-ui-module-ekyc 1.0.25 → 1.0.27

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.
@@ -71,9 +71,9 @@ const AssignEkyc = () => {
71
71
 
72
72
  const totalRecords = dashboardData?.dashboardInfo?.totalRecords || dashboardData?.totalCount || 0;
73
73
 
74
- const PropsForInboxLinks = {
75
- headerText: "EKYC_MODULE",
76
- };
74
+ // const PropsForInboxLinks = {
75
+ // headerText: "EKYC_MODULE",
76
+ // };
77
77
 
78
78
  const SearchFormFields = useCallback(
79
79
  ({ registerRef, searchFormState, controlSearchForm }) => (
@@ -117,18 +117,18 @@ const AssignEkyc = () => {
117
117
  className: "search-form-wns-inbox",
118
118
  };
119
119
 
120
- const FilterFormFields = useCallback(
121
- ({ registerRef, controlFilterForm, setFilterFormValue, getFilterFormValue }) => <React.Fragment></React.Fragment>,
122
- []
123
- );
124
-
125
- const propsForFilterForm = {
126
- FilterFormFields,
127
- onFilterFormSubmit: () => { },
128
- filterFormDefaultValues: "",
129
- resetFilterFormDefaultValues: "",
130
- onFilterFormReset: () => { },
131
- };
120
+ // const FilterFormFields = useCallback(
121
+ // ({ registerRef, controlFilterForm, setFilterFormValue, getFilterFormValue }) => <React.Fragment></React.Fragment>,
122
+ // []
123
+ // );
124
+
125
+ // const propsForFilterForm = {
126
+ // FilterFormFields,
127
+ // onFilterFormSubmit: () => { },
128
+ // filterFormDefaultValues: "",
129
+ // resetFilterFormDefaultValues: "",
130
+ // onFilterFormReset: () => { },
131
+ // };
132
132
 
133
133
  const onPageSizeChange = (e) => {
134
134
  const newLimit = Number(e.target.value);
@@ -134,25 +134,20 @@ const AssignEkycModal = ({ surveyor, closeModal, refetchDashboard }) => {
134
134
  }
135
135
  }
136
136
 
137
- console.log("=-=-==-=-=-=-", {
138
- assignmentType: "KNO",
139
- assignmentValues: selectedKnos,
140
- });
141
-
142
137
  return {
143
138
  assignmentType: "KNO",
144
- assignmentValues: selectedKnos,
139
+ assignmentValue: selectedKnos,
145
140
  };
146
141
  };
142
+
147
143
  const handleAssign = () => {
148
- const { assignmentType, assignmentValue, assignmentValues } = getAssignmentPayload();
144
+ const { assignmentType, assignmentValue } = getAssignmentPayload();
149
145
 
150
146
  assignmentMutation.mutate({
151
147
  tenantId: "dl.djb",
152
148
  surveyorId: surveyor?.owner?.uuid,
153
149
  assignmentType,
154
150
  assignmentValue,
155
- assignmentValues,
156
151
  });
157
152
  };
158
153
 
@@ -80,7 +80,7 @@ const DesktopInbox = ({ tableConfig, filterComponent, ...props }) => {
80
80
  Header: t("EKYC_EKYC_STATUS"),
81
81
  accessor: "ekycStatus",
82
82
  Cell: ({ row }) => {
83
- const ekycStatus = row.original?.ekycstatus || "NA";
83
+ const ekycStatus = row.original?.ekycStatus || row.original?.ekycstatus || "NA";
84
84
  return <span className={`ekyc-status-tag ${ekycStatus}`}>{t(`${ekycStatus}`)}</span>
85
85
  }
86
86
  },