mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Tests complétés
This commit is contained in:
parent
5d2777b485
commit
731841a315
5 changed files with 8 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ const MultipleChoiceQuestionDisplay: React.FC<Props> = (props) => {
|
|||
{!showAnswer && handleOnSubmitAnswer && (
|
||||
|
||||
<Button
|
||||
className='submit-button'
|
||||
variant="contained"
|
||||
onClick={() =>
|
||||
answer !== "" && handleOnSubmitAnswer && handleOnSubmitAnswer(answer)
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ const NumericalQuestionDisplay: React.FC<Props> = (props) => {
|
|||
)}
|
||||
{handleOnSubmitAnswer && (
|
||||
<Button
|
||||
className='submit-button'
|
||||
variant="contained"
|
||||
onClick={() =>
|
||||
answer !== undefined &&
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ const ShortAnswerQuestionDisplay: React.FC<Props> = (props) => {
|
|||
</div>
|
||||
{handleOnSubmitAnswer && (
|
||||
<Button
|
||||
className='submit-button'
|
||||
variant="contained"
|
||||
onClick={() =>
|
||||
answer !== undefined &&
|
||||
|
|
|
|||
|
|
@ -105,6 +105,7 @@ const TrueFalseQuestionDisplay: React.FC<Props> = (props) => {
|
|||
)}
|
||||
{!showAnswer && handleOnSubmitAnswer && (
|
||||
<Button
|
||||
className='submit-button'
|
||||
variant="contained"
|
||||
onClick={() =>
|
||||
answer !== undefined && handleOnSubmitAnswer && handleOnSubmitAnswer(answer)
|
||||
|
|
|
|||
|
|
@ -200,6 +200,10 @@
|
|||
margin-bottom: 1rem;
|
||||
|
||||
}
|
||||
.submit-button{
|
||||
width: 20%;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue