1
- import { h , Component } from " preact" ;
2
- import * as styles from " ./QuizTitle.scss" ;
3
- import { ui } from " kaltura-player-js" ;
1
+ import { h , Component } from ' preact' ;
2
+ import * as styles from ' ./QuizTitle.scss' ;
3
+ import { ui } from '@playkit-js/ kaltura-player-js' ;
4
4
const { withText, Text} = ui . preacti18n ;
5
5
6
6
const translates = ( props : QuizItemProps ) => {
@@ -30,15 +30,15 @@ const translates = (props: QuizItemProps) => {
30
30
return {
31
31
...labelTranslate ,
32
32
title : < Text id = "navigation.reflection_point_title" fields = { { index : `${ currentIndex } ` } } > { `Reflection point ${ currentIndex } ` } </ Text >
33
- }
33
+ } ;
34
34
} else {
35
35
// Question
36
36
return {
37
37
...labelTranslate ,
38
38
title : < Text id = "navigation.question_title" fields = { { index : `${ currentIndex } ` } } > { `Question ${ currentIndex } ` } </ Text >
39
- }
39
+ } ;
40
40
}
41
- }
41
+ } ;
42
42
43
43
export interface QuizItemProps {
44
44
questionState : number ;
@@ -58,7 +58,7 @@ export class QuizTitle extends Component<QuizItemProps> {
58
58
labelClass = styles . correct ;
59
59
}
60
60
return (
61
- < div className = { `${ styles . labelWrapper } ${ labelClass } ` } data-testid = ' navigation_questionStateLabel' >
61
+ < div className = { `${ styles . labelWrapper } ${ labelClass } ` } data-testid = " navigation_questionStateLabel" >
62
62
< span > { this . props . stateLabel } </ span >
63
63
</ div >
64
64
) ;
@@ -67,12 +67,11 @@ export class QuizTitle extends Component<QuizItemProps> {
67
67
render ( props : QuizItemProps ) {
68
68
return (
69
69
< div className = { styles . titleWrapper } >
70
- < div className = { styles . title } data-testid = ' navigation_questionTitle' >
70
+ < div className = { styles . title } data-testid = " navigation_questionTitle" >
71
71
< span > { this . props . title } </ span >
72
72
</ div >
73
73
{ this . props . questionState !== 1 ? this . _renderStateLabel ( ) : undefined }
74
74
</ div >
75
75
) ;
76
76
}
77
-
78
- }
77
+ }
0 commit comments