Skip to content

Commit 02910bb

Browse files
committed
refactor: use question bank config
1 parent 3478c7d commit 02910bb

26 files changed

+3404
-4850
lines changed

src/components/Quiz/stories/QuizzesStats.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const meta = {
1111
"layer-2": [false, 0],
1212
"run-a-node": [false, 0],
1313
merge: [false, 0],
14-
"solo-staking": [false, 0],
14+
"staking-solo": [false, 0],
1515
"what-is-ether": [false, 0],
1616
"what-is-ethereum": [false, 0],
1717
nfts: [false, 0],

src/data/quizzes/index.ts

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,21 @@ const quizzes = {
55
"what-is-ethereum": {
66
title: "what-is-ethereum",
77
questions: [
8-
"ethereum-1",
9-
"ethereum-2",
10-
"ethereum-3",
11-
"ethereum-4",
12-
"ethereum-5",
8+
"what-is-ethereum-1",
9+
"what-is-ethereum-2",
10+
"what-is-ethereum-3",
11+
"what-is-ethereum-4",
12+
"what-is-ethereum-5",
1313
],
1414
},
1515
"what-is-ether": {
1616
title: "what-is-ether",
17-
questions: ["ether-1", "ether-2", "ether-3", "ether-4"],
17+
questions: [
18+
"what-is-ether-1",
19+
"what-is-ether-2",
20+
"what-is-ether-3",
21+
"what-is-ether-4",
22+
],
1823
},
1924
web3: {
2025
title: "web3",
@@ -50,16 +55,16 @@ const quizzes = {
5055
title: "DAOs",
5156
questions: ["daos-1", "daos-2", "daos-3", "daos-4", "daos-5"],
5257
},
53-
"solo-staking": {
58+
"staking-solo": {
5459
title: "solo",
5560
questions: [
56-
"staking-1",
57-
"staking-2",
58-
"staking-4",
59-
"staking-5",
60-
"staking-6",
61-
"staking-7",
62-
"staking-8",
61+
"staking-solo-1",
62+
"staking-solo-2",
63+
"staking-solo-4",
64+
"staking-solo-5",
65+
"staking-solo-6",
66+
"staking-solo-7",
67+
"staking-solo-8",
6368
],
6469
},
6570
scaling: {
@@ -150,10 +155,10 @@ export const usingEthereumQuizzes: QuizzesSection[] = [
150155
{
151156
id: "scaling",
152157
level: "advanced",
153-
next: "solo-staking",
158+
next: "staking-solo",
154159
},
155160
{
156-
id: "solo-staking",
161+
id: "staking-solo",
157162
level: "advanced",
158163
},
159164
]

0 commit comments

Comments
 (0)