Skip to content

Commit

Permalink
removed continue button
Browse files Browse the repository at this point in the history
  • Loading branch information
ZimLim committed Sep 11, 2024
1 parent a39cac4 commit b2b7239
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
10 changes: 1 addition & 9 deletions src/components/ProgressPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FC, useEffect, useState } from "react";
import { Box, Button, styled, Stepper, Typography, Step, StepLabel, StepConnector, StepConnectorProps} from "@mui/material";
import { Box, styled, Stepper, Typography, Step, StepLabel, StepConnector, StepConnectorProps} from "@mui/material";
import CheckCircleIcon from '@mui/icons-material/CheckCircle';
import RadioButtonUncheckedIcon from '@mui/icons-material/RadioButtonUnchecked';

Expand Down Expand Up @@ -33,7 +33,6 @@ const MemoryTestsLabels = [

interface ProgressPageProps {
id:number
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void
}

interface CustomConnectorProps extends StepConnectorProps {
Expand Down Expand Up @@ -68,13 +67,6 @@ export const ProgressPage: FC<ProgressPageProps> = (props) => {
))
}
</Stepper>
<Box sx={{width:'100%', paddingTop: '3vh'}}>
<Button variant="contained" sx={{textAlign: 'center', minWidth: '50%', width:'100%'}} onClick={props.onClick}>
<Typography>
Continue
</Typography>
</Button>
</Box>
</Box>
)
}
12 changes: 6 additions & 6 deletions src/components/Transition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export const Transition: FC<TransitionProps> = ({ handleTransition }) => {

return (
<>
{cxt?.testPhase === TestPhase.MEMORY_RECALL_IMMEDIATE && <ProgressPage id={1} onClick={handleTransition}/>}
{cxt?.testPhase === TestPhase.VISUAL_PAIRS_MEMORIZE && <ProgressPage id={2} onClick={handleTransition}/>}
{cxt?.testPhase === TestPhase.VISUAL_PAIRS_RECALL && <ProgressPage id={3} onClick={handleTransition}/>}
{cxt?.testPhase === TestPhase.DIGIT_SYMBOL_MATCHING && <ProgressPage id={4} onClick={handleTransition}/>}
{cxt?.testPhase === TestPhase.CHOICE_REACTION_TIME && <ProgressPage id={5} onClick={handleTransition}/>}
{cxt?.testPhase === TestPhase.SPACIAL_MEMORY && <ProgressPage id={6} onClick={handleTransition}/>}
{cxt?.testPhase === TestPhase.MEMORY_RECALL_IMMEDIATE && <ProgressPage id={1}/>}
{cxt?.testPhase === TestPhase.VISUAL_PAIRS_MEMORIZE && <ProgressPage id={2}/>}
{cxt?.testPhase === TestPhase.VISUAL_PAIRS_RECALL && <ProgressPage id={3}/>}
{cxt?.testPhase === TestPhase.DIGIT_SYMBOL_MATCHING && <ProgressPage id={4}/>}
{cxt?.testPhase === TestPhase.CHOICE_REACTION_TIME && <ProgressPage id={5}/>}
{cxt?.testPhase === TestPhase.SPACIAL_MEMORY && <ProgressPage id={6}/>}

<Box display="flex" flexDirection="column" gap={2}>
{showPlayButton && cxt?.testPhase === TestPhase.MEMORY_RECALL_IMMEDIATE && (
Expand Down

0 comments on commit b2b7239

Please sign in to comment.