Skip to content

Commit 944166f

Browse files
committed
refactor(tailwind migration): migrate history/networkupgradesummary to tailwind
1 parent 2e0e0ed commit 944166f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/History/NetworkUpgradeSummary.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { useEffect, useState } from "react"
22
import { useRouter } from "next/router"
33
import { useTranslation } from "next-i18next"
4-
import { Flex, Stack, Text } from "@chakra-ui/react"
54

65
import type { Lang } from "@/lib/types"
76

7+
import { Flex, Stack } from "@/components/ui/flex"
8+
89
import { getLocaleForNumberFormat } from "@/lib/utils/translations"
910

1011
import NetworkUpgradeSummaryData from "../../data/NetworkUpgradeSummaryData"
@@ -48,7 +49,7 @@ const NetworkUpgradeSummary = ({ name }: NetworkUpgradeSummaryProps) => {
4849

4950
const blockTypeTranslation = (translationKey, explorerUrl, number) => {
5051
return (
51-
<Flex whiteSpace="pre-wrap">
52+
<Flex className="whitespace-pre-wrap">
5253
<Emoji className="me-2 text-sm" text=":bricks:" />
5354
{t(translationKey)}:{" "}
5455
<InlineLink href={`${explorerUrl}${number}`}>
@@ -63,7 +64,7 @@ const NetworkUpgradeSummary = ({ name }: NetworkUpgradeSummaryProps) => {
6364
{dateTimeAsString && (
6465
<Flex>
6566
<Emoji className="me-2 text-sm" text=":calendar:" />
66-
<Text fontFamily="monospace">{formattedUTC}</Text>
67+
<p className="font-monospace">{formattedUTC}</p>
6768
</Flex>
6869
)}
6970
{blockNumber &&

0 commit comments

Comments
 (0)