trithuc-mvc-react 3.2.6 → 3.2.8

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>
@@ -301,7 +301,7 @@ const DataTableSM = ({ multipleActions = [], page, setPage = () => {}, disableEd
301
301
  return (
302
302
  <>
303
303
  <Grid container>
304
- {!hasTabpanel && (
304
+ {total > 0 && (
305
305
  <Grid alignSelf={"center"} sx={{ pl: 2 }}>
306
306
  <Typography variant="body1">
307
307
  Tổng số lượng: <span>{total}</span>
@@ -110,14 +110,14 @@ export const TableRowRender = ({
110
110
  {!disableCellThaoTac && (
111
111
  <TableCell align="center">
112
112
  {!disableEdit && canEdit && (
113
- <Tooltip title="Chỉnh sửa">
113
+ <Tooltip title="Cập nhật">
114
114
  <IconButton size={downXl ? "small" : "medium"} onClick={() => onEdit(row)}>
115
115
  <EditOutlined fontSize="inherit" color="primary" />
116
116
  </IconButton>
117
117
  </Tooltip>
118
118
  )}
119
119
  {canView && !tableActions?.some(({ permissionType }) => permissionType == "view") && (
120
- <Tooltip title="Xem chi tiết">
120
+ <Tooltip title="Chi tiết">
121
121
  <IconButton onClick={() => onView(row)}>
122
122
  <RemoveRedEyeOutlinedIcon color="info" />
123
123
  </IconButton>
@@ -93,7 +93,7 @@ export const TableRowRenderSM = ({
93
93
  startIcon={<EditOutlined fontSize="inherit" />}
94
94
  sx={buttonStyle}
95
95
  >
96
- Sửa
96
+ Cập nhật
97
97
  </Button>
98
98
  </Grid>
99
99
  )}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trithuc-mvc-react",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"