Skip to content

Commit

Permalink
Merge pull request #14074 from Baystef/migrate/networkupgradesummary
Browse files Browse the repository at this point in the history
Migrate History/NetworkUpgradeSummary to tailwind
  • Loading branch information
pettinarip authored Oct 9, 2024
2 parents 50ef950 + 944166f commit 8c3c327
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 8c3c327

Please sign in to comment.