trithuc-mvc-react 3.2.5 → 3.2.7

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.
@@ -291,7 +291,7 @@ const DataTable = ({ multipleActions = [], page, setPage = () => {}, disableEdit
291
291
  return (
292
292
  <>
293
293
  <Grid container>
294
- {!hasTabpanel && (
294
+ {total > 0 && (
295
295
  <Grid alignSelf={"center"} sx={{ pl: 2 }}>
296
296
  <Typography variant="body1">
297
297
  Tổng số lượng: <span>{total}</span>
@@ -254,6 +254,8 @@ const DataTableSM = ({ multipleActions = [], page, setPage = () => {}, disableEd
254
254
  const newRowsPerPage = parseInt(event.target.value, 10); // Chuyển đổi giá trị thành số nguyên
255
255
  // Lưu giá trị mới vào localStorage với khóa tùy chỉnh theo tableName
256
256
  localStorage.setItem(`${tableName}rowsPerPage`, newRowsPerPage);
257
+ localStorage.setItem(`BoxThongKe${tableName}_RowsPerPage`, newRowsPerPage);
258
+ localStorage.setItem(`${tableName}_RowsPerPage`, newRowsPerPage);
257
259
  setRowsPerPage(newRowsPerPage);
258
260
  setPage(0);
259
261
  };
@@ -299,7 +301,7 @@ const DataTableSM = ({ multipleActions = [], page, setPage = () => {}, disableEd
299
301
  return (
300
302
  <>
301
303
  <Grid container>
302
- {!hasTabpanel && (
304
+ {total > 0 && (
303
305
  <Grid alignSelf={"center"} sx={{ pl: 2 }}>
304
306
  <Typography variant="body1">
305
307
  Tổng số lượng: <span>{total}</span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trithuc-mvc-react",
3
- "version": "3.2.5",
3
+ "version": "3.2.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"