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