File tree Expand file tree Collapse file tree 3 files changed +186
-172
lines changed
app/[locale]/developers/tutorials/_components Expand file tree Collapse file tree 3 files changed +186
-172
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ import {
34
34
35
35
import externalTutorials from "@/data/externalTutorials.json"
36
36
37
+ import { DEFAULT_LOCALE } from "@/lib/constants"
38
+
37
39
import { useBreakpointValue } from "@/hooks/useBreakpointValue"
38
40
39
41
type LinkFlexProps = FlexProps & {
@@ -93,14 +95,15 @@ const TutorialPage = ({
93
95
contentNotTranslated,
94
96
} : TutorialPageProps ) => {
95
97
const locale = useLocale ( )
98
+ const effectiveLocale = internalTutorials . length > 0 ? locale : DEFAULT_LOCALE
96
99
const filteredTutorialsByLang = useMemo (
97
100
( ) =>
98
101
filterTutorialsByLang (
99
102
internalTutorials ,
100
103
externalTutorials ,
101
- locale as Lang
104
+ effectiveLocale as Lang
102
105
) ,
103
- [ internalTutorials , locale ]
106
+ [ internalTutorials , effectiveLocale ]
104
107
)
105
108
106
109
const allTags = useMemo (
Original file line number Diff line number Diff line change @@ -320,11 +320,11 @@ const chains = [
320
320
} ,
321
321
{
322
322
name : "Blast Mainnet" ,
323
- infoURL : "https://docs.blastblockchain.com " ,
323
+ infoURL : "https://docs.blastchain.org " ,
324
324
chainId : 238 ,
325
325
nativeCurrency : {
326
- name : "Ether " ,
327
- symbol : "ETH " ,
326
+ name : "One World Chain " ,
327
+ symbol : "OWCT " ,
328
328
decimals : 18 ,
329
329
} ,
330
330
chain : "ETH" ,
@@ -1892,6 +1892,17 @@ const chains = [
1892
1892
} ,
1893
1893
chain : "DUSTBOY" ,
1894
1894
} ,
1895
+ {
1896
+ name : "Ethereum Hoodi" ,
1897
+ infoURL : "https://hoodi.ethpandaops.io" ,
1898
+ chainId : 560048 ,
1899
+ nativeCurrency : {
1900
+ name : "Hoodi Ether" ,
1901
+ symbol : "ETH" ,
1902
+ decimals : 18 ,
1903
+ } ,
1904
+ chain : "ETH" ,
1905
+ } ,
1895
1906
{
1896
1907
name : "Zether Mainnet" ,
1897
1908
infoURL : "https://zether.org" ,
You can’t perform that action at this time.
0 commit comments