From 2a7c10f102420110e5662c7e9cfb807326daf2dc Mon Sep 17 00:00:00 2001 From: Karolina Kosiorowska Date: Fri, 24 Nov 2023 14:14:21 +0100 Subject: [PATCH] Create a separate type - `Currency` --- dapp/src/components/Navbar/ConnectWallet.tsx | 2 +- dapp/src/constants/{chains.ts => currency.ts} | 13 +++++++++++-- dapp/src/constants/index.ts | 2 +- dapp/src/types/currency.ts | 5 +++++ dapp/src/types/index.ts | 1 + 5 files changed, 19 insertions(+), 4 deletions(-) rename dapp/src/constants/{chains.ts => currency.ts} (56%) create mode 100644 dapp/src/types/currency.ts diff --git a/dapp/src/components/Navbar/ConnectWallet.tsx b/dapp/src/components/Navbar/ConnectWallet.tsx index 62838f620..c7099f1c8 100644 --- a/dapp/src/components/Navbar/ConnectWallet.tsx +++ b/dapp/src/components/Navbar/ConnectWallet.tsx @@ -54,7 +54,7 @@ export default function ConnectWallet() { ? "0.00" : formatSatoshiAmount(btcAccount.balance.toString())} - {BITCOIN.token} + {BITCOIN.symbol}