trithuc-mvc-react 2.3.4 → 2.3.6

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.
@@ -204,6 +204,8 @@ const DataTable = ({ multipleActions = [] }) => {
204
204
  key={row.Id}
205
205
  index={index}
206
206
  row={row}
207
+ page={page}
208
+ rowsPerPage={rowsPerPage}
207
209
  selected={isSelected(row[selectedField])}
208
210
  onSelect={handleSelect}
209
211
  onEdit={handlEdit}
@@ -9,7 +9,18 @@ import { styled, useTheme } from "@mui/material/styles";
9
9
  import MoreMenu from "../MoreMenu";
10
10
  import { useMemo } from "react";
11
11
 
12
- export const TableRowRender = ({ index, row, selected, onSelect, onChangeStatus, onDelete, onEdit, onView }) => {
12
+ export const TableRowRender = ({
13
+ index,
14
+ row,
15
+ page,
16
+ rowsPerPage,
17
+ selected,
18
+ onSelect,
19
+ onChangeStatus,
20
+ onDelete,
21
+ onEdit,
22
+ onView
23
+ }) => {
13
24
  const { selectedField, columns, statusKey, disableStatus, tableActions, disableCellThaoTac, tableName, sttLuyKe } =
14
25
  useDataTable();
15
26
  const { canEdit, canDelete, canView, canAction } = usePermission(tableName);
@@ -208,7 +208,6 @@ function DataManagement({
208
208
  {tabPanel}
209
209
  <FilterGod filters={filters} elementSize={elementSize} />
210
210
  {backParentNavigator}
211
- {console.log(">>> tnduc", backParentNavigator)}
212
211
  <DataTable multipleActions={multipleActions} />
213
212
  </Card>
214
213
  </FormProvider>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trithuc-mvc-react",
3
- "version": "2.3.4",
3
+ "version": "2.3.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"