1
1
import { GetStaticProps , InferGetStaticPropsType } from "next"
2
+ import type { ImageProps } from "next/image"
2
3
import { useRouter } from "next/router"
3
4
import { useTranslation } from "next-i18next"
4
5
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
@@ -20,13 +21,11 @@ import {
20
21
BannerGridCell ,
21
22
BannerImage ,
22
23
} from "@/components/BannerGrid"
23
- import { Button , ButtonLink } from "@/components/Buttons"
24
24
import Callout from "@/components/Callout"
25
25
import Card from "@/components/Card"
26
26
import EnergyConsumptionChart from "@/components/EnergyConsumptionChart"
27
27
import FeedbackCard from "@/components/FeedbackCard"
28
- import { Image , type ImageProps } from "@/components/Image"
29
- import InlineLink from "@/components/Link"
28
+ import { TwImage } from "@/components/Image"
30
29
import MainArticle from "@/components/MainArticle"
31
30
import PageMetadata from "@/components/PageMetadata"
32
31
import { StandaloneQuizWidget } from "@/components/Quiz/QuizWidget"
@@ -35,7 +34,9 @@ import StatErrorMessage from "@/components/StatErrorMessage"
35
34
import Tabs from "@/components/Tabs"
36
35
import Tooltip from "@/components/Tooltip"
37
36
import Translation from "@/components/Translation"
37
+ import { Button , ButtonLink } from "@/components/ui/buttons/Button"
38
38
import { Center , Flex , HStack , Stack , VStack } from "@/components/ui/flex"
39
+ import InlineLink from "@/components/ui/Link"
39
40
40
41
import { cn } from "@/lib/utils/cn"
41
42
import { existsNamespace } from "@/lib/utils/existsNamespace"
@@ -156,7 +157,7 @@ const NoWrapText = (props: ChildOnlyProp) => (
156
157
)
157
158
158
159
const Image400 = ( { src } : Pick < ImageProps , "src" > ) => (
159
- < Image src = { src } alt = "" width = { 400 } />
160
+ < TwImage src = { src } alt = "" width = { 400 } />
160
161
)
161
162
162
163
const cachedFetchTxCount = runOnlyOnce ( fetchTxCount )
@@ -318,7 +319,7 @@ const WhatIsEthereumPage = ({
318
319
</ header >
319
320
</ Stack >
320
321
< Hero >
321
- < Image
322
+ < TwImage
322
323
src = { hero }
323
324
alt = { t ( "page-what-is-ethereum-alt-img-bazaar" ) }
324
325
// TODO: adjust value when the old theme breakpoints are removed (src/theme.ts)
@@ -652,7 +653,13 @@ const WhatIsEthereumPage = ({
652
653
< ButtonLink href = "/smart-contracts/" >
653
654
{ t ( "page-what-is-ethereum-more-on-smart-contracts" ) }
654
655
</ ButtonLink >
655
- < ButtonLink href = "/dapps/" variant = "outline" isSecondary >
656
+ < ButtonLink
657
+ href = "/dapps/"
658
+ buttonProps = { {
659
+ variant : "outline" ,
660
+ isSecondary : true ,
661
+ } }
662
+ >
656
663
{ t ( "page-what-is-ethereum-explore-dapps" ) }
657
664
</ ButtonLink >
658
665
</ ButtonRow >
@@ -675,7 +682,13 @@ const WhatIsEthereumPage = ({
675
682
< ButtonLink href = "/eth/" >
676
683
{ t ( "page-what-is-ethereum-what-is-ether" ) }
677
684
</ ButtonLink >
678
- < ButtonLink href = "/get-eth/" variant = "outline" isSecondary >
685
+ < ButtonLink
686
+ href = "/get-eth/"
687
+ buttonProps = { {
688
+ variant : "outline" ,
689
+ isSecondary : true ,
690
+ } }
691
+ >
679
692
{ t ( "page-what-is-ethereum-get-eth" ) }
680
693
</ ButtonLink >
681
694
</ ButtonRow >
@@ -704,8 +717,10 @@ const WhatIsEthereumPage = ({
704
717
</ ButtonLink >
705
718
< ButtonLink
706
719
href = "/roadmap/merge/"
707
- variant = "outline"
708
- isSecondary
720
+ buttonProps = { {
721
+ variant : "outline" ,
722
+ isSecondary : true ,
723
+ } }
709
724
>
710
725
{ t ( "page-what-is-ethereum-the-merge-update" ) }
711
726
</ ButtonLink >
0 commit comments