@@ -20,8 +20,8 @@ const meta = {
20
20
component : QuizzesListComponent ,
21
21
args : {
22
22
content : ethereumBasicsQuizzes ,
23
- headingId : "basics" ,
24
- descriptionId : "basics-description" ,
23
+ headingId : getTranslation ( "basics" , "learn-quizzes" ) ,
24
+ descriptionId : getTranslation ( "basics-description" , "learn-quizzes" ) ,
25
25
userStats : {
26
26
score : 0 ,
27
27
average : [ ] ,
@@ -35,13 +35,7 @@ const meta = {
35
35
export default meta
36
36
37
37
export const Default : StoryObj < typeof meta > = {
38
- render : ( { headingId, descriptionId, ...args } ) => (
39
- < QuizzesListComponent
40
- { ...args }
41
- headingId = { getTranslation ( headingId , "learn-quizzes" ) }
42
- descriptionId = { getTranslation ( descriptionId , "learn-quizzes" ) }
43
- />
44
- ) ,
38
+ render : ( args ) => < QuizzesListComponent { ...args } /> ,
45
39
}
46
40
47
41
export const OneCompletedQuiz : StoryObj < typeof meta > = {
@@ -56,11 +50,5 @@ export const OneCompletedQuiz: StoryObj<typeof meta> = {
56
50
} ,
57
51
} ,
58
52
} ,
59
- render : ( { headingId, descriptionId, ...args } ) => (
60
- < QuizzesListComponent
61
- { ...args }
62
- headingId = { getTranslation ( headingId , "learn-quizzes" ) }
63
- descriptionId = { getTranslation ( descriptionId , "learn-quizzes" ) }
64
- />
65
- ) ,
53
+ render : ( args ) => < QuizzesListComponent { ...args } /> ,
66
54
}
0 commit comments