From d59a745171cf98c6ad35d626bfdf244a338d3b9e Mon Sep 17 00:00:00 2001 From: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> Date: Fri, 5 Jul 2024 17:40:17 +0800 Subject: [PATCH] chore(perf): move SupplyStats logic to client side and remove state refresh (#1935) chore: move SupplyStats logic to client side and remove state refresh --- src/components/index/StatCard.tsx | 39 -------- src/components/index/SupplyStats.tsx | 130 ++++++++++++++++----------- src/pages/index.page.tsx | 28 ++---- 3 files changed, 86 insertions(+), 111 deletions(-) delete mode 100644 src/components/index/StatCard.tsx diff --git a/src/components/index/StatCard.tsx b/src/components/index/StatCard.tsx deleted file mode 100644 index 7462e57fd..000000000 --- a/src/components/index/StatCard.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import { DFI as DfiIcon } from "@components/icons/assets/tokens/DFI"; -import { NumericFormat } from "react-number-format"; - -export function StatPriceCard(props: { - usd: number | undefined; - updatedAt: string | undefined; -}): JSX.Element { - return ( -