@@ -11,7 +11,7 @@ import {
11
11
Text as ChakraText ,
12
12
} from "@chakra-ui/react"
13
13
14
- import { ChildOnlyProp } from "@/lib/types"
14
+ import { BasePageProps , ChildOnlyProp } from "@/lib/types"
15
15
16
16
import ButtonLink from "@/components/Buttons/ButtonLink"
17
17
import Callout from "@/components/Callout"
@@ -29,8 +29,8 @@ import PageMetadata from "@/components/PageMetadata"
29
29
import { StandaloneQuizWidget } from "@/components/Quiz/QuizWidget"
30
30
import { Simulator } from "@/components/Simulator"
31
31
import { SIMULATOR_ID } from "@/components/Simulator/constants"
32
- import Translation from "@/components/Translation"
33
32
33
+ import { existsNamespace } from "@/lib/utils/existsNamespace"
34
34
import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
35
35
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
36
36
@@ -127,22 +127,21 @@ const CalloutCardContainer = (props: ChildOnlyProp) => (
127
127
< CardContainer mt = { 16 } { ...props } />
128
128
)
129
129
130
-
131
- type Props = SSRConfig & {
132
- lastDeployDate : string
133
- }
134
130
export const getStaticProps = ( async ( { locale } ) => {
135
131
const lastDeployDate = getLastDeployDate ( )
136
132
137
133
const requiredNamespaces = getRequiredNamespacesForPage ( "/wallets" )
138
134
135
+ const contentNotTranslated = ! existsNamespace ( locale ! , requiredNamespaces [ 2 ] )
136
+
139
137
return {
140
138
props : {
141
139
...( await serverSideTranslations ( locale ! , requiredNamespaces ) ) ,
140
+ contentNotTranslated,
142
141
lastDeployDate,
143
142
} ,
144
143
}
145
- } ) satisfies GetStaticProps < Props >
144
+ } ) satisfies GetStaticProps < BasePageProps >
146
145
147
146
const WalletsPage = ( ) => {
148
147
const { locale } = useRouter ( )
@@ -208,7 +207,7 @@ const WalletsPage = () => {
208
207
description : t ( "page-wallets-your-login-desc" ) ,
209
208
} ,
210
209
]
211
-
210
+
212
211
const types = [
213
212
{
214
213
emoji : ":cd:" ,
@@ -231,7 +230,7 @@ const WalletsPage = () => {
231
230
description : t ( "page-wallets-desktop" ) ,
232
231
} ,
233
232
]
234
-
233
+
235
234
const articles = [
236
235
{
237
236
title : t ( "page-wallets-protecting-yourself" ) ,
@@ -249,7 +248,7 @@ const WalletsPage = () => {
249
248
link : "https://media.consensys.net/how-to-store-digital-assets-on-ethereum-a2bfdcf66bd0" ,
250
249
} ,
251
250
]
252
-
251
+
253
252
const guides = [
254
253
{
255
254
title : t ( "additional-reading-how-to-create-an-ethereum-account" ) ,
0 commit comments