Skip to content

Commit

Permalink
style: Add loading indicator to download button
Browse files Browse the repository at this point in the history
  • Loading branch information
Veikkosuhonen committed Feb 12, 2024
1 parent 4146994 commit 5b1b489
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/pages/CourseSummary/GenerateReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import {
Button,
Checkbox,
CircularProgress,
FormControl,
FormControlLabel,
FormGroup,
Expand Down Expand Up @@ -115,7 +116,7 @@ const GenerateReport = () => {
disabled={!isValid || isLoading}
sx={{ mt: '1rem' }}
variant="contained"
endIcon={<Download />}
endIcon={isLoading ? <CircularProgress sx={{ color: 'primary.main' }} size={16} /> : <Download />}
>
{t('common:exportXLSX')}
</Button>
Expand Down

0 comments on commit 5b1b489

Please sign in to comment.