trithuc-mvc-react 2.3.3 → 2.3.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.
|
@@ -10,20 +10,11 @@ import MoreMenu from "../MoreMenu";
|
|
|
10
10
|
import { useMemo } from "react";
|
|
11
11
|
|
|
12
12
|
export const TableRowRender = ({ index, row, selected, onSelect, onChangeStatus, onDelete, onEdit, onView }) => {
|
|
13
|
-
const {
|
|
14
|
-
|
|
15
|
-
columns,
|
|
16
|
-
statusKey,
|
|
17
|
-
disableStatus,
|
|
18
|
-
tableActions,
|
|
19
|
-
disableCellThaoTac,
|
|
20
|
-
tableName,
|
|
21
|
-
sttLuyKe,
|
|
22
|
-
backParentNavigator
|
|
23
|
-
} = useDataTable();
|
|
13
|
+
const { selectedField, columns, statusKey, disableStatus, tableActions, disableCellThaoTac, tableName, sttLuyKe } =
|
|
14
|
+
useDataTable();
|
|
24
15
|
const { canEdit, canDelete, canView, canAction } = usePermission(tableName);
|
|
25
16
|
|
|
26
|
-
console.log(">>>
|
|
17
|
+
console.log(">>> useDataTable()", useDataTable());
|
|
27
18
|
const { tableActionsOnTable, tableActionsOnMoreMenu } = useMemo(() => {
|
|
28
19
|
const tableActionsAfterFilter = [...tableActions]
|
|
29
20
|
.filter((x) => x)
|
|
@@ -153,7 +153,6 @@ function DataManagement({
|
|
|
153
153
|
|
|
154
154
|
const methods = useForm({ defaultValues: getDefaultValues(filters) });
|
|
155
155
|
const { reset, setValue } = methods;
|
|
156
|
-
console.log("tnduc", backParentNavigator);
|
|
157
156
|
return (
|
|
158
157
|
<>
|
|
159
158
|
<DataTableContext.Provider value={values}>
|
|
@@ -209,7 +208,7 @@ function DataManagement({
|
|
|
209
208
|
{tabPanel}
|
|
210
209
|
<FilterGod filters={filters} elementSize={elementSize} />
|
|
211
210
|
{backParentNavigator}
|
|
212
|
-
|
|
211
|
+
{console.log(">>> tnduc", backParentNavigator)}
|
|
213
212
|
<DataTable multipleActions={multipleActions} />
|
|
214
213
|
</Card>
|
|
215
214
|
</FormProvider>
|