trithuc-mvc-react 2.8.4 → 2.8.5
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Grid2, Table, TableBody, TableCell, TableContainer, TableRow, Typography, useMediaQuery, useTheme } from "@mui/material";
|
|
2
2
|
import TablePaginationCustom from "../table/TablePagination";
|
|
3
3
|
import { useEffect, useMemo, useState } from "react";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Grid2, Table, TableBody, TableCell, TableContainer, TableRow, Typography, useMediaQuery, useTheme } from "@mui/material";
|
|
2
2
|
import TablePaginationCustom from "../table/TablePagination";
|
|
3
3
|
import { useEffect, useMemo, useState } from "react";
|
|
4
4
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Checkbox, IconButton, Switch, TableCell, TableRow, Tooltip, Toolbar, useMediaQuery, Box, Grid } from "@mui/material";
|
|
2
|
-
import DeleteOutlineIcon from "@mui/icons-material/DeleteOutline";
|
|
3
1
|
import { EditOutlined } from "@mui/icons-material";
|
|
4
|
-
import
|
|
2
|
+
import DeleteOutlineIcon from "@mui/icons-material/DeleteOutline";
|
|
5
3
|
import RemoveRedEyeOutlinedIcon from "@mui/icons-material/RemoveRedEyeOutlined";
|
|
6
|
-
import {
|
|
4
|
+
import { Box, IconButton, Switch, TableCell, TableRow, Toolbar, Tooltip, useMediaQuery } from "@mui/material";
|
|
7
5
|
import { styled, useTheme } from "@mui/material/styles";
|
|
8
|
-
import MoreMenu from "../MoreMenu";
|
|
9
6
|
import { useMemo } from "react";
|
|
7
|
+
import { usePermission } from "../../hooks";
|
|
8
|
+
import MoreMenu from "../MoreMenu";
|
|
9
|
+
import { useDataTable } from "./hooks";
|
|
10
10
|
|
|
11
11
|
export const TableRowRenderSM = ({
|
|
12
12
|
index,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Box }
|
|
1
|
+
import { Box,Grid2 } from "@mui/material";
|
|
2
2
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { FormProvider, useForm } from "react-hook-form";
|
|
@@ -79,11 +79,11 @@ function DynamicForm({ fields, elementSize = "medium", submitRef, validationSche
|
|
|
79
79
|
size={elementSize}
|
|
80
80
|
required={required}
|
|
81
81
|
/>
|
|
82
|
-
</
|
|
82
|
+
</Grid2>
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
)}
|
|
86
|
-
</
|
|
86
|
+
</Grid2>
|
|
87
87
|
<button ref={submitRef} type="submit" style={{ display: "none" }} />
|
|
88
88
|
</Box>
|
|
89
89
|
</FormProvider>
|