trithuc-mvc-react 2.5.1 → 2.5.2
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.
|
@@ -86,7 +86,7 @@ const DataTable = ({ multipleActions = [],page, setPage = () => { }, disableEdit
|
|
|
86
86
|
});
|
|
87
87
|
|
|
88
88
|
const handleDelete = (id) => {
|
|
89
|
-
confirm({ description: "Bạn có chắc chắn muốn xóa bản ghi này không?", title: "Xác nhận" })
|
|
89
|
+
confirm({ description: "Bạn có chắc chắn muốn xóa bản ghi này không?", title: "Xác nhận", cancellationText: "Hủy", confirmationText: "Xóa"})
|
|
90
90
|
.then(() => {
|
|
91
91
|
deleteMutation.mutate({
|
|
92
92
|
id,
|
|
@@ -164,7 +164,7 @@ const DataTable = ({ multipleActions = [],page, setPage = () => { }, disableEdit
|
|
|
164
164
|
setPage(0);
|
|
165
165
|
};
|
|
166
166
|
const handleDeleteMultiple = () => {
|
|
167
|
-
confirm({ description: `Bạn có chắc chắn muốn xóa ${selectedItems?.length} bản ghi này không?`, title: "Xác nhận" })
|
|
167
|
+
confirm({ description: `Bạn có chắc chắn muốn xóa ${selectedItems?.length} bản ghi này không?`, title: "Xác nhận", cancellationText: "Hủy", confirmationText: "Đồng ý" })
|
|
168
168
|
.then(() => {
|
|
169
169
|
deleteMultipleMutation.mutate({
|
|
170
170
|
tableName,
|
|
@@ -108,6 +108,7 @@ const DateRangePicker = ({ label = ["Từ ngày", "Đến ngày"] }) => {
|
|
|
108
108
|
}));
|
|
109
109
|
}}
|
|
110
110
|
edge="end"
|
|
111
|
+
style={{ visibility: dateRange.startDate ? 'visible' : 'hidden' }}
|
|
111
112
|
>
|
|
112
113
|
<ClearIcon />
|
|
113
114
|
</IconButton>
|
|
@@ -143,6 +144,7 @@ const DateRangePicker = ({ label = ["Từ ngày", "Đến ngày"] }) => {
|
|
|
143
144
|
}));
|
|
144
145
|
}}
|
|
145
146
|
edge="end"
|
|
147
|
+
style={{ visibility: dateRange.endDate ? 'visible' : 'hidden' }}
|
|
146
148
|
>
|
|
147
149
|
<ClearIcon />
|
|
148
150
|
</IconButton>
|