Skip to content

Commit

Permalink
added icon to button
Browse files Browse the repository at this point in the history
  • Loading branch information
DomiVesalius committed Jul 23, 2023
1 parent db53312 commit c5cd8ea
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/src/components/Module/Mark/GetMarkCSVButton.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Button } from '@mui/material';
import InstructorApi from '../../../api/instructor_api';
import FileDownloadIcon from '@mui/icons-material/FileDownload';

/**
* Triggers a download of a CSV file containing marks for a given task within
Expand Down Expand Up @@ -33,8 +34,13 @@ const GetMarkCSVButton = ({ task, course_id }) => {
};

return (
<Button variant="contained" size="small" onClick={handleExport}>
Export Marks (CSV)
<Button
startIcon={<FileDownloadIcon />}
variant="contained"
size="small"
onClick={handleExport}
>
Export Marks
</Button>
);
};
Expand Down

0 comments on commit c5cd8ea

Please sign in to comment.