Skip to content

Commit c35633f

Browse files
committed
added icons for downloading various outputs
1 parent 3db0cd9 commit c35633f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

client/src/workspace/DownloadButton/index.jsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import React, { useState } from "react";
22
import Menu from "@mui/material/Menu";
33
import MenuItem from "@mui/material/MenuItem";
44
import DownloadIcon from "@mui/icons-material/Download";
5+
import DescriptionIcon from "@mui/icons-material/Description";
6+
import ImageIcon from "@mui/icons-material/Image";
7+
import ImageSearchIcon from "@mui/icons-material/ImageSearch";
58
import colors from "../../colors.js";
69
import { getImageFile } from "../../utils/get-data-from-server.js";
710
import { useSnackbar} from "../../SnackbarContext/index.jsx"
@@ -83,9 +86,9 @@ const DownloadButton = ({selectedImageName, classList, hideHeaderText}) => {
8386
open={Boolean(anchorEl)}
8487
onClose={handleClose}
8588
>
86-
<MenuItem onClick={() => handleDownload("configuration")}>Configuration</MenuItem>
87-
<MenuItem onClick={() => handleDownload("masked-image")}>Masked Image</MenuItem>
88-
<MenuItem onClick={() => handleDownload("annotated-image")}> Annotated Image</MenuItem>
89+
<MenuItem onClick={() => handleDownload("configuration")}> <DescriptionIcon style={{ marginRight: 8 }} />Configuration</MenuItem>
90+
<MenuItem onClick={() => handleDownload("masked-image")}> <ImageIcon style={{ marginRight: 8 }} />Masked Image</MenuItem>
91+
<MenuItem onClick={() => handleDownload("annotated-image")}> <ImageSearchIcon style={{ marginRight: 8 }} />Annotated Image</MenuItem>
8992
</Menu>
9093
</>
9194
);

0 commit comments

Comments
 (0)