trithuc-mvc-react 3.4.8 → 3.4.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.
@@ -56,53 +56,53 @@ const ExportExcelButton = ({ tableName, data, size = "small" }) => {
56
56
  </Typography>
57
57
  </Button>
58
58
  ) : (
59
- // <Tooltip title="Excel">
60
- // <IconButton
61
- // variant="outlined"
62
- // color="primary"
63
- // size={size}
64
- // onClick={() => {
65
- // handleExportExcel(tableName, data);
66
- // }}
67
- // >
68
- // <Download fontSize="inherit" />
69
- // </IconButton>
70
- // </Tooltip>
71
- <Button
72
- size={size}
73
- variant="outlined"
74
- startIcon={<Download />}
75
- onClick={() => {
76
- handleExportExcel(tableName, data);
77
- }}
78
- sx={{
79
- ml: 0.5,
80
- mr: 0.5,
81
- fontSize: {
82
- xs: "0.75rem",
83
- sm: "0.875rem",
84
- md: "1rem"
85
- },
86
- textAlign: "center",
87
- textTransform: "none"
88
- }}
89
- >
90
- <Typography
91
- noWrap
92
- sx={{
93
- width: "100%",
94
- fontSize: {
95
- xs: "0.75rem",
96
- sm: "0.875rem",
97
- md: "1rem"
98
- },
99
- textAlign: "center",
100
- textTransform: "none" // ✅ Đảm bảo chữ gốc giữ nguyên
59
+ <Tooltip title="Excel">
60
+ <IconButton
61
+ variant="outlined"
62
+ color="primary"
63
+ size={size}
64
+ onClick={() => {
65
+ handleExportExcel(tableName, data);
101
66
  }}
102
67
  >
103
- Excel
104
- </Typography>
105
- </Button>
68
+ <Download fontSize="inherit" />
69
+ </IconButton>
70
+ </Tooltip>
71
+ // <Button
72
+ // size={size}
73
+ // variant="outlined"
74
+ // startIcon={<Download />}
75
+ // onClick={() => {
76
+ // handleExportExcel(tableName, data);
77
+ // }}
78
+ // sx={{
79
+ // ml: 0.5,
80
+ // mr: 0.5,
81
+ // fontSize: {
82
+ // xs: "0.75rem",
83
+ // sm: "0.875rem",
84
+ // md: "1rem"
85
+ // },
86
+ // textAlign: "center",
87
+ // textTransform: "none"
88
+ // }}
89
+ // >
90
+ // <Typography
91
+ // noWrap
92
+ // sx={{
93
+ // width: "100%",
94
+ // fontSize: {
95
+ // xs: "0.75rem",
96
+ // sm: "0.875rem",
97
+ // md: "1rem"
98
+ // },
99
+ // textAlign: "center",
100
+ // textTransform: "none" // ✅ Đảm bảo chữ gốc giữ nguyên
101
+ // }}
102
+ // >
103
+ // Excel
104
+ // </Typography>
105
+ // </Button>
106
106
  );
107
107
  };
108
108
  export default ExportExcelButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trithuc-mvc-react",
3
- "version": "3.4.8",
3
+ "version": "3.4.9",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"