change the mondatafilelist add the buttons

This commit is contained in:
2024-06-30 16:30:56 +02:00
parent dbae0a776d
commit 409e79f362

View File

@@ -67,7 +67,9 @@ export const MonDatafileList = () => {
const { mutate } = useUpdate();
//dataGridProps.disableRowSelectionOnClick: true;
const downloadSelectedItems = () => {}
const deleteSelectedItems = () => {}
const columns = React.useMemo<GridColDef<IMonitoringFile>[]>(
() => [
@@ -166,21 +168,21 @@ export const MonDatafileList = () => {
return (
<List
cardProps={{ sx: { paddingX: { xs: 2, md: 0 } } }}
cardHeaderProps={{
wrapperProps={{ sx: { backgroundColor: "lightsteelblue", }, }}
headerProps={{
subheader: hasSelected && (
<Stack direction="row">
<Button
startIcon={<Download color="success" />}
onClick={() => updateSelectedItems("approved")}
onClick={() => downloadSelectedItems()}
>
Download
</Button>
<Button
startIcon={<Delete color="error" />}
onClick={() => updateSelectedItems("rejected")}
startIcon={<Delete color="success" />}
onClick={() => deleteSelectedItems()}
>
{t("buttons.rejectAll")}
Delete
</Button>
</Stack>
),