diff --git a/src/components/Exercises/FillBlanks.tsx b/src/components/Exercises/FillBlanks.tsx index 622393c5..74f114a3 100644 --- a/src/components/Exercises/FillBlanks.tsx +++ b/src/components/Exercises/FillBlanks.tsx @@ -89,7 +89,7 @@ export default function FillBlanks({id, allowRepetition, prompt, solutions, text const userSolution = userSolutions.find((x) => x.id === id); return ( - ); diff --git a/src/components/Exercises/WriteBlanks.tsx b/src/components/Exercises/WriteBlanks.tsx index 810d41f5..c11e4bf3 100644 --- a/src/components/Exercises/WriteBlanks.tsx +++ b/src/components/Exercises/WriteBlanks.tsx @@ -33,7 +33,7 @@ function Blank({ return ( setUserInput(e.target.value)} value={userInput} diff --git a/src/components/Solutions/FillBlanks.tsx b/src/components/Solutions/FillBlanks.tsx index b3945e6a..ca0142c5 100644 --- a/src/components/Solutions/FillBlanks.tsx +++ b/src/components/Solutions/FillBlanks.tsx @@ -18,20 +18,22 @@ export default function FillBlanksSolutions({prompt, solutions, text, userSoluti if (!userSolution) { return ( <> - + ); } if (userSolution.solution === solution.solution) { - return ; + return ; } if (userSolution.solution !== solution.solution) { return ( <> - - + + ); } diff --git a/src/components/Solutions/MultipleChoice.tsx b/src/components/Solutions/MultipleChoice.tsx index 564c7076..8555d590 100644 --- a/src/components/Solutions/MultipleChoice.tsx +++ b/src/components/Solutions/MultipleChoice.tsx @@ -74,6 +74,7 @@ function Question({ key={option.id} onClick={() => (onSelectOption ? onSelectOption(option.id) : null)} className={clsx("flex border-2 p-4 rounded-xl gap-2 cursor-pointer bg-white", optionColor(option.id))}> + {showSolution && optionBadge(option.id)} {option.id}. {option.text} diff --git a/src/components/Solutions/WriteBlanks.tsx b/src/components/Solutions/WriteBlanks.tsx index f8c7421f..d3ecddd0 100644 --- a/src/components/Solutions/WriteBlanks.tsx +++ b/src/components/Solutions/WriteBlanks.tsx @@ -44,7 +44,7 @@ function Blank({ return ( setUserInput(e.target.value)} value={!solutions ? userInput : solutions.join(" / ")}