1
1
import { type ReactNode } from "react"
2
- import { useRouter } from "next/router"
3
2
import { useTranslation } from "next-i18next"
4
3
import { MdInfoOutline } from "react-icons/md"
5
4
6
5
import { cn } from "@/lib/utils/cn"
7
- import { isValidDate } from "@/lib/utils/date"
8
6
9
7
import Tooltip from "../Tooltip"
10
8
import Link from "../ui/Link"
@@ -27,13 +25,13 @@ const BigNumber = ({
27
25
className,
28
26
} : BigNumberProps ) => {
29
27
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
+ // : ""
37
35
return (
38
36
< div
39
37
className = { cn (
@@ -56,7 +54,8 @@ const BigNumber = ({
56
54
</ p >
57
55
{ lastUpdated && (
58
56
< p className = "mt-2" >
59
- { t ( "last-updated" ) } : { lastUpdatedDisplay }
57
+ { t ( "last-updated" ) } :{ " " }
58
+ { new Date ( lastUpdated ) . toISOString ( ) }
60
59
</ p >
61
60
) }
62
61
</ >
0 commit comments