Skip to content

Commit bee765c

Browse files
committed
replace InfoBanners with Alerts
1 parent eda21b0 commit bee765c

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

src/pages/get-eth.tsx

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import Emoji from "@/components/Emoji"
1414
import EthPriceCard from "@/components/EthPriceCard"
1515
import FeedbackCard from "@/components/FeedbackCard"
1616
import { TwImage as Image } from "@/components/Image"
17-
import InfoBanner from "@/components/InfoBanner"
1817
import MainArticle from "@/components/MainArticle"
1918
import PageMetadata from "@/components/PageMetadata"
2019
import Translation from "@/components/Translation"
20+
import { Alert, AlertContent, AlertDescription } from "@/components/ui/alert"
2121
import { ButtonLink } from "@/components/ui/buttons/Button"
2222
import {
2323
Card,
@@ -246,7 +246,7 @@ const GetEthPage = ({
246246
</StyledCard>
247247
</div>
248248

249-
<div className="mb-8">
249+
<Stack className="gap-16">
250250
<p>
251251
<em>
252252
{t("common:listing-policy-disclaimer")}{" "}
@@ -255,13 +255,18 @@ const GetEthPage = ({
255255
</InlineLink>
256256
</em>
257257
</p>
258-
<InfoBanner emoji=":wave:" shouldCenter mt={8}>
259-
{t("page-get-eth-new-to-eth")}{" "}
260-
<InlineLink href="/eth/">
261-
{t("page-get-eth-whats-eth-link")}
262-
</InlineLink>
263-
</InfoBanner>
264-
</div>
258+
<Alert className="mx-auto w-fit" variant="update">
259+
<AlertContent className="flex flex-row items-center gap-4">
260+
<Emoji className="text-4xl" text=":wave:" />
261+
<AlertDescription>
262+
{t("page-get-eth-new-to-eth")}{" "}
263+
<InlineLink href="/eth/">
264+
{t("page-get-eth-whats-eth-link")}
265+
</InlineLink>
266+
</AlertDescription>
267+
</AlertContent>
268+
</Alert>
269+
</Stack>
265270

266271
<div
267272
id="country-picker"
@@ -291,9 +296,13 @@ const GetEthPage = ({
291296
<ButtonLink href="/wallets/find-wallet/" className="w-fit">
292297
{t("page-get-eth-get-wallet-btn")}
293298
</ButtonLink>
294-
<InfoBanner isWarning>
295-
<Translation id="page-get-eth:page-get-eth-dexs-desc-4" />
296-
</InfoBanner>
299+
<Alert variant="warning">
300+
<AlertContent>
301+
<AlertDescription>
302+
<Translation id="page-get-eth:page-get-eth-dexs-desc-4" />
303+
</AlertDescription>
304+
</AlertContent>
305+
</Alert>
297306
</Stack>
298307

299308
<Stack className="gap-4">
@@ -302,7 +311,13 @@ const GetEthPage = ({
302311
</h3>
303312
<p>{t("page-get-eth-swapping")}</p>
304313
<CardList items={tokenSwaps} />
305-
<InfoBanner isWarning>{t("page-get-eth-warning")}</InfoBanner>
314+
<Alert variant="warning">
315+
<AlertContent>
316+
<AlertDescription>
317+
<Translation id="page-get-eth:page-get-eth-warning" />
318+
</AlertDescription>
319+
</AlertContent>
320+
</Alert>
306321
</Stack>
307322
</TwoColumnContent>
308323
</Stack>

0 commit comments

Comments
 (0)