Skip to content

Commit

Permalink
chore: rearrange tags
Browse files Browse the repository at this point in the history
  • Loading branch information
okplanbo committed Oct 4, 2024
1 parent 6f3f1bd commit 68dd3f1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/QuestionCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ const QuestionCard = ({
<Stack spacing={5}>
{answers.map((answer, index) => (
<Radio key={index} value={answer.text}>
<p className="select-text">
{answer.text}
{answer.correct && selectedAnswer !== null ? (
<CheckCircleIcon marginLeft={2} color="green.600" />
) : null}
</p>
<span className="select-text">{answer.text}</span>
{answer.correct && selectedAnswer !== null ? (
<CheckCircleIcon
marginBottom={1}
marginLeft={2}
color="green.600"
/>
) : null}
</Radio>
))}
</Stack>
Expand Down

0 comments on commit 68dd3f1

Please sign in to comment.