Skip to content

Commit

Permalink
refactor(tailwind migration): migrate history/networkupgradesummary t…
Browse files Browse the repository at this point in the history
…o tailwind
  • Loading branch information
Baystef committed Oct 5, 2024
1 parent 2e0e0ed commit 944166f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/History/NetworkUpgradeSummary.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { useEffect, useState } from "react"
import { useRouter } from "next/router"
import { useTranslation } from "next-i18next"
import { Flex, Stack, Text } from "@chakra-ui/react"

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

import { Flex, Stack } from "@/components/ui/flex"

import { getLocaleForNumberFormat } from "@/lib/utils/translations"

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

const blockTypeTranslation = (translationKey, explorerUrl, number) => {
return (
<Flex whiteSpace="pre-wrap">
<Flex className="whitespace-pre-wrap">
<Emoji className="me-2 text-sm" text=":bricks:" />
{t(translationKey)}:{" "}
<InlineLink href={`${explorerUrl}${number}`}>
Expand All @@ -63,7 +64,7 @@ const NetworkUpgradeSummary = ({ name }: NetworkUpgradeSummaryProps) => {
{dateTimeAsString && (
<Flex>
<Emoji className="me-2 text-sm" text=":calendar:" />
<Text fontFamily="monospace">{formattedUTC}</Text>
<p className="font-monospace">{formattedUTC}</p>
</Flex>
)}
{blockNumber &&
Expand Down

0 comments on commit 944166f

Please sign in to comment.