From cddc8c7218d5f8c555230dfff4553baa3378bc64 Mon Sep 17 00:00:00 2001 From: Wulabalabo Date: Wed, 3 Jan 2024 18:47:58 +0800 Subject: [PATCH] fix:CSS name bug && total locked Sui Caculate bug --- app/ticks/[name]/page.tsx | 12 ++++-------- components/tick-table.tsx | 18 +++++++++--------- public/thirteen.svg | 4 ++-- 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/app/ticks/[name]/page.tsx b/app/ticks/[name]/page.tsx index 3024366..d52c845 100644 --- a/app/ticks/[name]/page.tsx +++ b/app/ticks/[name]/page.tsx @@ -61,10 +61,9 @@ export default function Home({ params }: { params: { name: string } }) { ? res.data?.content.fields : null if (data) { + console.log(data); tickData[0]["value"] = `${ - (parseInt(data.total_transactions ?? 0) * - parseInt(data.mint_fee)) / - 1000000000 + (parseInt(data.current_supply ?? 0) /10000) }` tickData[1]["value"] = `${ parseInt(data.current_epoch) + 1 @@ -198,14 +197,11 @@ export default function Home({ params }: { params: { name: string } }) { ? res.data?.content?.fields : null if (data) { - console.log(data) tickData[0]["value"] = `${ - (parseInt(data.total_transactions ?? 0) * - parseInt(data.mint_fee)) / - 1000000000 + parseInt(data.current_supply ?? 0) / 10000 }` tickData[1]["value"] = `${ - 21600 + parseInt(data.current_epoch) + 1 }/${parseInt(data.epoch_count)}` tickData[2]["value"] = `${data.total_transactions ?? 0}` // @ts-ignore diff --git a/components/tick-table.tsx b/components/tick-table.tsx index b4b74e6..e091de9 100644 --- a/components/tick-table.tsx +++ b/components/tick-table.tsx @@ -67,19 +67,19 @@ export default function TickTable(props: TickTableProps) { - - - - - + + + + + - - - + + + - + - + - +