From 21810ad7b42cccecc5f59f7d50f2c3ef459e3f9a Mon Sep 17 00:00:00 2001 From: MusabShakeel576 <46605319+MusabShakeel576@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:03:25 +0000 Subject: [PATCH 01/10] Add total balance and Billing & Plan nav menu --- app/build/Home.tsx | 2 +- app/dashboard/Home.tsx | 43 +++++++++++++++++------------------- components/NavMenu.tsx | 4 +--- lib/api.ts | 5 ++++- lib/helpers.ts | 4 ++++ lib/types.ts | 12 ++++++++++ store/operatorSlice/index.ts | 38 ++++++++++++++++++++++++++++++- 7 files changed, 79 insertions(+), 29 deletions(-) diff --git a/app/build/Home.tsx b/app/build/Home.tsx index e084d738..6543b3ef 100644 --- a/app/build/Home.tsx +++ b/app/build/Home.tsx @@ -64,7 +64,7 @@ const Home = () => {
- ${(chain && chain.id === fuse.id) ? - new Intl.NumberFormat().format( - parseFloat((parseFloat(formatUnits(balance?.value ?? BigInt(0), balance?.decimals ?? evmDecimals) ?? "0.00") * balanceSlice.price).toString()) - ) : - "0.00" - } -
+ "0.00"} + }