File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/components/Quiz/QuizWidget Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,7 @@ type AnswerIconProps = {
20
20
* Defaults to the `TrophyIcon` prior to answering a question
21
21
*/
22
22
export const AnswerIcon = ( { answerStatus } : AnswerIconProps ) => {
23
- const commonProps = {
24
- color : "neutral" ,
25
- }
23
+ const commonIconClasses = "fill-background"
26
24
27
25
const IconWrapper = ( props : ChildOnlyProp ) => {
28
26
const getWrapperBg = ( ) => {
@@ -46,22 +44,22 @@ export const AnswerIcon = ({ answerStatus }: AnswerIconProps) => {
46
44
if ( ! answerStatus ) {
47
45
return (
48
46
< IconWrapper >
49
- < TrophyIcon { ... commonProps } />
47
+ < TrophyIcon className = { commonIconClasses } />
50
48
</ IconWrapper >
51
49
)
52
50
}
53
51
54
52
if ( answerStatus === "correct" ) {
55
53
return (
56
54
< IconWrapper >
57
- < CorrectIcon { ... commonProps } />
55
+ < CorrectIcon className = { commonIconClasses } />
58
56
</ IconWrapper >
59
57
)
60
58
}
61
59
62
60
return (
63
61
< IconWrapper >
64
- < IncorrectIcon { ... commonProps } />
62
+ < IncorrectIcon className = { commonIconClasses } />
65
63
</ IconWrapper >
66
64
)
67
65
}
You can’t perform that action at this time.
0 commit comments