Tests complétés

This commit is contained in:
JubaAzul 2025-03-14 17:10:42 -04:00
parent 5d2777b485
commit 731841a315
5 changed files with 8 additions and 0 deletions

View file

@ -99,6 +99,7 @@ const MultipleChoiceQuestionDisplay: React.FC<Props> = (props) => {
{!showAnswer && handleOnSubmitAnswer && (
<Button
className='submit-button'
variant="contained"
onClick={() =>
answer !== "" && handleOnSubmitAnswer && handleOnSubmitAnswer(answer)

View file

@ -109,6 +109,7 @@ const NumericalQuestionDisplay: React.FC<Props> = (props) => {
)}
{handleOnSubmitAnswer && (
<Button
className='submit-button'
variant="contained"
onClick={() =>
answer !== undefined &&

View file

@ -91,6 +91,7 @@ const ShortAnswerQuestionDisplay: React.FC<Props> = (props) => {
</div>
{handleOnSubmitAnswer && (
<Button
className='submit-button'
variant="contained"
onClick={() =>
answer !== undefined &&

View file

@ -105,6 +105,7 @@ const TrueFalseQuestionDisplay: React.FC<Props> = (props) => {
)}
{!showAnswer && handleOnSubmitAnswer && (
<Button
className='submit-button'
variant="contained"
onClick={() =>
answer !== undefined && handleOnSubmitAnswer && handleOnSubmitAnswer(answer)

View file

@ -200,6 +200,10 @@
margin-bottom: 1rem;
}
.submit-button{
width: 20%;
}