Skip to content

Commit 2a76c93

Browse files
committed
test
1 parent 4a9e467 commit 2a76c93

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/components/BigNumber/index.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { type ReactNode } from "react"
2-
import { useRouter } from "next/router"
32
import { useTranslation } from "next-i18next"
43
import { MdInfoOutline } from "react-icons/md"
54

65
import { cn } from "@/lib/utils/cn"
7-
import { isValidDate } from "@/lib/utils/date"
86

97
import Tooltip from "../Tooltip"
108
import Link from "../ui/Link"
@@ -27,13 +25,13 @@ const BigNumber = ({
2725
className,
2826
}: BigNumberProps) => {
2927
const { t } = useTranslation("common")
30-
const { locale } = useRouter()
31-
const lastUpdatedDisplay =
32-
lastUpdated && isValidDate(lastUpdated)
33-
? new Intl.DateTimeFormat(locale, {
34-
dateStyle: "medium",
35-
}).format(new Date(lastUpdated))
36-
: ""
28+
// const { locale } = useRouter()
29+
// const lastUpdatedDisplay =
30+
// lastUpdated && isValidDate(lastUpdated)
31+
// ? new Intl.DateTimeFormat(locale, {
32+
// dateStyle: "medium",
33+
// }).format(new Date(lastUpdated))
34+
// : ""
3735
return (
3836
<div
3937
className={cn(
@@ -56,7 +54,8 @@ const BigNumber = ({
5654
</p>
5755
{lastUpdated && (
5856
<p className="mt-2">
59-
{t("last-updated")}: {lastUpdatedDisplay}
57+
{t("last-updated")}:{" "}
58+
{new Date(lastUpdated).toISOString()}
6059
</p>
6160
)}
6261
</>

0 commit comments

Comments
 (0)