trithuc-mvc-react 2.7.0 → 2.7.1

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.
@@ -211,7 +211,10 @@ const DataTable = ({ multipleActions = [], page, setPage = () => {}, disableEdit
211
211
  };
212
212
 
213
213
  const handleChangeRowsPerPage = (event) => {
214
- setRowsPerPage(parseInt(event.target.value, 10));
214
+ const newRowsPerPage = parseInt(event.target.value, 10); // Chuyển đổi giá trị thành số nguyên
215
+ // Lưu giá trị mới vào localStorage với khóa tùy chỉnh theo tableName
216
+ localStorage.setItem(`${tableName}rowsPerPage`, newRowsPerPage);
217
+ setRowsPerPage(newRowsPerPage);
215
218
  setPage(0);
216
219
  };
217
220
  const handleDeleteMultiple = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trithuc-mvc-react",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"