change the mondatafilelist add the buttons
This commit is contained in:
@@ -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>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user