Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pettinarip committed Oct 17, 2024
1 parent 4a9e467 commit 2a76c93
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/components/BigNumber/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { type ReactNode } from "react"
import { useRouter } from "next/router"
import { useTranslation } from "next-i18next"
import { MdInfoOutline } from "react-icons/md"

import { cn } from "@/lib/utils/cn"
import { isValidDate } from "@/lib/utils/date"

import Tooltip from "../Tooltip"
import Link from "../ui/Link"
Expand All @@ -27,13 +25,13 @@ const BigNumber = ({
className,
}: BigNumberProps) => {
const { t } = useTranslation("common")
const { locale } = useRouter()
const lastUpdatedDisplay =
lastUpdated && isValidDate(lastUpdated)
? new Intl.DateTimeFormat(locale, {
dateStyle: "medium",
}).format(new Date(lastUpdated))
: ""
// const { locale } = useRouter()
// const lastUpdatedDisplay =
// lastUpdated && isValidDate(lastUpdated)
// ? new Intl.DateTimeFormat(locale, {
// dateStyle: "medium",
// }).format(new Date(lastUpdated))
// : ""
return (
<div
className={cn(
Expand All @@ -56,7 +54,8 @@ const BigNumber = ({
</p>
{lastUpdated && (
<p className="mt-2">
{t("last-updated")}: {lastUpdatedDisplay}
{t("last-updated")}:{" "}
{new Date(lastUpdated).toISOString()}
</p>
)}
</>
Expand Down

0 comments on commit 2a76c93

Please sign in to comment.