File tree Expand file tree Collapse file tree 2 files changed +27
-31
lines changed
src/components/Quiz/QuizWidget Expand file tree Collapse file tree 2 files changed +27
-31
lines changed Original file line number Diff line number Diff line change @@ -22,24 +22,22 @@ export type QuizButtonGroupProps = {
22
22
handleSubmitAnswer : ( questionId : string , answerChoice : AnswerChoice ) => void
23
23
}
24
24
25
- export const QuizButtonGroup = ( props : QuizButtonGroupProps ) => {
26
- const {
27
- showAnswer,
28
- showResults,
29
- quizScore,
30
- questions,
31
- handleReset,
32
- currentQuestionIndex,
33
- currentQuestionAnswerChoice,
34
- finishedQuiz,
35
- handleRetryQuestion,
36
- handleShare,
37
- handleNextQuiz,
38
- hasNextQuiz,
39
- handleContinue,
40
- handleSubmitAnswer,
41
- } = props
42
-
25
+ export const QuizButtonGroup = ( {
26
+ showAnswer,
27
+ showResults,
28
+ quizScore,
29
+ questions,
30
+ handleReset,
31
+ currentQuestionIndex,
32
+ currentQuestionAnswerChoice,
33
+ finishedQuiz,
34
+ handleRetryQuestion,
35
+ handleShare,
36
+ handleNextQuiz,
37
+ hasNextQuiz,
38
+ handleContinue,
39
+ handleSubmitAnswer,
40
+ } : QuizButtonGroupProps ) => {
43
41
const hasFailedAnswer =
44
42
currentQuestionAnswerChoice && ! currentQuestionAnswerChoice . isCorrect
45
43
Original file line number Diff line number Diff line change @@ -23,19 +23,17 @@ export type QuizContentProps = {
23
23
>
24
24
}
25
25
26
- export const QuizContent = ( props : QuizContentProps ) => {
27
- const {
28
- showAnswer,
29
- isCurrentQuestionCorrect,
30
- questions,
31
- title,
32
- progressBarBackground,
33
- showResults,
34
- quizSummaryProps,
35
- currentQuestionIndex,
36
- quizRadioGroupProps,
37
- } = props
38
-
26
+ export const QuizContent = ( {
27
+ showAnswer,
28
+ isCurrentQuestionCorrect,
29
+ questions,
30
+ title,
31
+ progressBarBackground,
32
+ showResults,
33
+ quizSummaryProps,
34
+ currentQuestionIndex,
35
+ quizRadioGroupProps,
36
+ } : QuizContentProps ) => {
39
37
const getTitleTextColor = ( ) : TextProps [ "color" ] => {
40
38
if ( showAnswer ) {
41
39
return isCurrentQuestionCorrect ? "success.base" : "fail.base"
You can’t perform that action at this time.
0 commit comments