inboxlookup_screen 1.2.3 → 1.2.4

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": "inboxlookup_screen",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "A React component using DevExtreme",
5
5
  "main": "dist/index.js",
6
6
  "homepage": "./",
@@ -30,7 +30,7 @@ const OrdersMasterDetail = ({ dataSource, keyExpr, token, BaseUrl, ProjectId, Fl
30
30
  const [autoExpandAll, setAutoExpandAll] = useState(true);
31
31
  const metaRef = useRef(null);
32
32
  const [pendingSheet, setPendingSheet] = useState(null);
33
-
33
+ const [totalCount, setTotalCount] = useState(0);
34
34
  useEffect(() => {
35
35
  if (!ProjectId) return;
36
36
 
@@ -176,8 +176,8 @@ const OrdersMasterDetail = ({ dataSource, keyExpr, token, BaseUrl, ProjectId, Fl
176
176
  body: JSON.stringify(loadOptions)
177
177
  }
178
178
  );
179
-
180
179
  const result = await response.json();
180
+ setTotalCount(result.totalCount ?? 0);
181
181
  if (requestId !== requestVersionRef.current) {
182
182
  return { data: [], totalCount: 0 };
183
183
  }
@@ -580,6 +580,9 @@ const OrdersMasterDetail = ({ dataSource, keyExpr, token, BaseUrl, ProjectId, Fl
580
580
 
581
581
 
582
582
  </DataGrid>
583
+ <div style={{ marginTop: "10px", fontWeight: "500" }}>
584
+ Total Rows: {totalCount}
585
+ </div>
583
586
  {/* </div> */}
584
587
 
585
588
  {selectedRow && (