trithuc-mvc-react 1.8.8 → 1.8.9
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.
|
@@ -117,16 +117,10 @@ const DataTable = ({ multipleActions = [] }) => {
|
|
|
117
117
|
total
|
|
118
118
|
};
|
|
119
119
|
}, [data]);
|
|
120
|
-
const [maxTotal, setMaxTotal] = useState(0);
|
|
121
120
|
|
|
122
121
|
useEffect(() => {
|
|
123
122
|
let PermissionModel = data?.PermissionModel;
|
|
124
123
|
PermissionModel && setPermission(PermissionModel);
|
|
125
|
-
|
|
126
|
-
let total = data?.total ?? 0;
|
|
127
|
-
if (total > maxTotal) {
|
|
128
|
-
setMaxTotal(total);
|
|
129
|
-
}
|
|
130
124
|
}, [data]);
|
|
131
125
|
useEffect(() => {
|
|
132
126
|
const newSelectedItems = selectedItems.filter((selectedId) => {
|
|
@@ -234,7 +228,7 @@ const DataTable = ({ multipleActions = [] }) => {
|
|
|
234
228
|
{!hasTabpanel && (
|
|
235
229
|
<Grid item alignSelf={"center"} sx={{ pl: 2 }}>
|
|
236
230
|
<Typography variant="body1">
|
|
237
|
-
Tổng số lượng: <span>{
|
|
231
|
+
Tổng số lượng: <span>{total}</span>
|
|
238
232
|
</Typography>
|
|
239
233
|
</Grid>
|
|
240
234
|
)}
|