fix: server initial ui match

This commit is contained in:
DIYgod 2022-11-17 17:26:29 +00:00
parent d58849e465
commit 3dd6e0ce9a
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 3 additions and 28 deletions

View File

@ -91,20 +91,7 @@ export const BlockchainInfo: React.FC<{
href={url}
key={url}
>
{index === 0 ? "Created" : "Last updated"}{" "}
{dayjs
.duration(
dayjs(
page?.[
index === 0
? "date_created"
: "date_updated"
],
).diff(dayjs(), "minute"),
"minute",
)
.humanize()}{" "}
ago{" "}
{index === 0 ? "Creation" : "Last Update"}{" "}
{url
.replace(CSB_SCAN + "/tx/", "")
.slice(0, 10)}
@ -123,20 +110,8 @@ export const BlockchainInfo: React.FC<{
href={`${CSB_SCAN}/tx/${hash}`}
key={hash}
>
{index === 1 ? "Last updated" : "Created"}{" "}
{dayjs
.duration(
dayjs(
site?.[
index === 0
? "date_created"
: "date_updated"
],
).diff(dayjs(), "minute"),
"minute",
)
.humanize()}{" "}
ago {hash.slice(0, 10)}...{hash.slice(-10)}
{index === 0 ? "Creation" : "Last Update"}{" "}
{hash.slice(0, 10)}...{hash.slice(-10)}
</a>
)
},