Skip to content

Commit

Permalink
Increase countdown clock time (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeronimoMendes authored May 28, 2022
1 parent 028e2c7 commit a5533b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/pages/ExamPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import CustomizedSteppers from '../components/questions/Stepper';
import ArrowBackIcon from '@mui/icons-material/ArrowBack';
import ArrowForwardIcon from '@mui/icons-material/ArrowForward';

const COUNTDOWN_TIME = 60 * 45;

const useStyles = makeStyles((theme) => ({
timer: {
margin: '2rem 0 6rem 0',
Expand Down Expand Up @@ -106,7 +108,7 @@ const ExamPage = (props) => {
</Grid>
<Grid item xs={12}>
<div className={classes.timer} align='center'>
<CountdownClock duration={exam.questions.length * 60} onComplete={onComplete} />
<CountdownClock duration={COUNTDOWN_TIME} onComplete={onComplete} />
</div>
</Grid>
<Grid
Expand Down

0 comments on commit a5533b6

Please sign in to comment.