@@ -17,7 +17,6 @@ import QuizzesList from "@/components/Quiz/QuizzesList"
17
17
import QuizzesModal from "@/components/Quiz/QuizzesModal"
18
18
import QuizzesStats from "@/components/Quiz/QuizzesStats"
19
19
import { useLocalQuizData } from "@/components/Quiz/useLocalQuizData"
20
- import Translation from "@/components/Translation"
21
20
22
21
import { existsNamespace } from "@/lib/utils/existsNamespace"
23
22
import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
@@ -56,7 +55,7 @@ export const getStaticProps = (async ({ locale }) => {
56
55
const QuizzesHubPage : NextPage <
57
56
InferGetStaticPropsType < typeof getStaticProps >
58
57
> = ( ) => {
59
- const { t } = useTranslation ( )
58
+ const { t } = useTranslation ( "learn-quizzes" )
60
59
61
60
const [ userStats , updateUserStats ] = useLocalQuizData ( )
62
61
const [ quizStatus , setQuizStatus ] = useState < QuizStatus > ( "neutral" )
@@ -81,8 +80,8 @@ const QuizzesHubPage: NextPage<
81
80
/>
82
81
< HubHero
83
82
title = { t ( "quizzes-title" ) }
84
- description = { t ( "learn-quizzes: quizzes-subtitle" ) }
85
- header = { t ( "learn-quizzes: test-your-knowledge" ) }
83
+ description = { t ( "quizzes-subtitle" ) }
84
+ header = { t ( "test-your-knowledge" ) }
86
85
heroImg = { HeroImage }
87
86
/>
88
87
< QuizzesModal isOpen = { isOpen } onClose = { onClose } quizStatus = { quizStatus } >
@@ -99,14 +98,14 @@ const QuizzesHubPage: NextPage<
99
98
< Box >
100
99
< QuizzesList
101
100
content = { ethereumBasicsQuizzes }
102
- headingId = { t ( "learn-quizzes: basics" ) }
103
- descriptionId = { t ( "learn-quizzes: basics-description" ) }
101
+ headingId = { t ( "basics" ) }
102
+ descriptionId = { t ( "basics-description" ) }
104
103
{ ...commonQuizListProps }
105
104
/>
106
105
< QuizzesList
107
106
content = { usingEthereumQuizzes }
108
- headingId = { t ( "learn-quizzes: using-ethereum" ) }
109
- descriptionId = { t ( "learn-quizzes: using-ethereum-description" ) }
107
+ headingId = { t ( "using-ethereum" ) }
108
+ descriptionId = { t ( "using-ethereum-description" ) }
110
109
{ ...commonQuizListProps }
111
110
/>
112
111
</ Box >
@@ -121,11 +120,11 @@ const QuizzesHubPage: NextPage<
121
120
>
122
121
< Box >
123
122
< Text align = { { base : "center" , xl : "left" } } fontWeight = "bold" >
124
- < Translation id = "learn-quizzes: want-more-quizzes" />
123
+ { t ( " want-more-quizzes") }
125
124
</ Text >
126
125
127
126
< Text align = { { base : "center" , xl : "left" } } >
128
- < Translation id = "learn-quizzes: contribute" />
127
+ { t ( " contribute") }
129
128
</ Text >
130
129
</ Box >
131
130
< ButtonLink
@@ -136,7 +135,7 @@ const QuizzesHubPage: NextPage<
136
135
>
137
136
< Flex alignItems = "center" >
138
137
< Icon as = { FaGithub } color = "text" boxSize = { 6 } me = { 2 } />
139
- < Translation id = "learn-quizzes: add-quiz" />
138
+ { t ( " add-quiz") }
140
139
</ Flex >
141
140
</ ButtonLink >
142
141
</ Flex >
0 commit comments