-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from Dudrie/add-downloadable-exam-results
Add downloadable exam results
- Loading branch information
Showing
43 changed files
with
841 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import React from 'react'; | ||
import { makeStyles, createStyles } from '@material-ui/core/styles'; | ||
import { | ||
Modal, | ||
CircularProgress, | ||
Typography, | ||
ModalProps, | ||
CircularProgressProps, | ||
} from '@material-ui/core'; | ||
import clsx from 'clsx'; | ||
|
||
const useStyles = makeStyles(theme => | ||
createStyles({ | ||
spinner: { | ||
marginRight: theme.spacing(1), | ||
}, | ||
modal: { | ||
color: theme.palette.common.white, | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
modalContent: { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
outline: 'none', | ||
}, | ||
modalText: { | ||
marginTop: theme.spacing(2), | ||
}, | ||
}) | ||
); | ||
|
||
interface Props extends Omit<ModalProps, 'children'> { | ||
modalText: string; | ||
open: boolean; | ||
CircularProgressProps?: CircularProgressProps; | ||
} | ||
|
||
function LoadingModal({ | ||
modalText, | ||
CircularProgressProps, | ||
className, | ||
...props | ||
}: Props): JSX.Element { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<Modal {...props} className={clsx(className, classes.modal)}> | ||
<div className={classes.modalContent} tabIndex={-1}> | ||
<CircularProgress | ||
size={56} | ||
color='inherit' | ||
className={clsx( | ||
CircularProgressProps && CircularProgressProps.className, | ||
classes.spinner | ||
)} | ||
/> | ||
|
||
<Typography variant='h4' className={classes.modalText}> | ||
{modalText} | ||
</Typography> | ||
</div> | ||
</Modal> | ||
); | ||
} | ||
|
||
export default LoadingModal; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.