Skip to content
Snippets Groups Projects
Commit b82c07af authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Add button when quiz win

parent 927c6492
No related branches found
No related tags found
No related merge requests found
......@@ -48,14 +48,22 @@ const QuizFinish: React.FC<QuizFinishProps> = ({
<StyledIcon className="quiz-icon" icon={starResult} size={30} />
</div>
</div>
<div className="button-start">
<StyledStopButton color="secondary" onClick={goBack}>
{t('quiz.go_back')}
</StyledStopButton>
<StyledStopButton color="secondary" onClick={retryQuiz}>
{t('quiz.try_again')}
</StyledStopButton>
</div>
{userChallenge.quiz.result === 5 ? (
<div className="button-start">
<StyledStopButton color="secondary" onClick={goBack}>
{t('quiz.youpi')}
</StyledStopButton>
</div>
) : (
<div className="button-start">
<StyledStopButton color="secondary" onClick={goBack}>
{t('quiz.go_back')}
</StyledStopButton>
<StyledStopButton color="secondary" onClick={retryQuiz}>
{t('quiz.try_again')}
</StyledStopButton>
</div>
)}
</div>
</div>
)
......
......@@ -398,12 +398,13 @@
"button": "Je retourne au menu des défis"
}
},
"quiz" : {
"explanation" : "Répondez correctement au 5 questions et remportez 5 des 15 étoiles nécessaires pour débloquer le défi final",
"score_final" : "SCORE FINAL",
"earn" : "Vous remportez",
"go_back" : "Retour",
"try_again" : "Rééssayer",
"quiz": {
"explanation": "Répondez correctement au 5 questions et remportez 5 des 15 étoiles nécessaires pour débloquer le défi final",
"score_final": "SCORE FINAL",
"earn": "Vous remportez",
"go_back": "Retour",
"youpi": "Youpi !",
"try_again": "Rééssayer",
"confirm": "Valider",
"next": "Suivant",
"consumption_question": "Question sur votre consommation"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment