From 3dfbffe4a23ff23b809cb392cf730f3eadecb2bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Wed, 26 Jun 2024 21:39:45 +0200 Subject: [PATCH] fix: remove savings balance card --- frontend/src/screens/channels/Channels.tsx | 79 ++++++++-------------- 1 file changed, 29 insertions(+), 50 deletions(-) diff --git a/frontend/src/screens/channels/Channels.tsx b/frontend/src/screens/channels/Channels.tsx index 3fa498b3..002798f7 100644 --- a/frontend/src/screens/channels/Channels.tsx +++ b/frontend/src/screens/channels/Channels.tsx @@ -1,7 +1,6 @@ import { ArrowDown, ArrowUp, - Bitcoin, ChevronDown, CopyIcon, ExternalLinkIcon, @@ -311,8 +310,31 @@ export default function Channels() { + - + On-Chain + + {balances && ( + <> + {new Intl.NumberFormat().format( + balances.onchain.spendable + )}{" "} + sats + {balances && + balances.onchain.spendable !== + balances.onchain.total && ( +

+ + + {new Intl.NumberFormat().format( + balances.onchain.total - + balances.onchain.spendable + )}{" "} + sats incoming +

+ )} + + )} +
- {/* - - */} + + + } > @@ -364,7 +386,7 @@ export default function Channels() {
{showHostedBalance && ( @@ -429,49 +451,6 @@ export default function Channels() { )} - - - - Savings Balance - - - - - {!balances && ( -
-
-
-
-
- )} -
- {balances && ( - <> - {new Intl.NumberFormat().format(balances.onchain.spendable)}{" "} - sats - {balances && - balances.onchain.spendable !== balances.onchain.total && ( -

- + - {new Intl.NumberFormat().format( - balances.onchain.total - balances.onchain.spendable - )}{" "} - sats incoming -

- )} - - )} -
-
- - - - - - - - -
@@ -498,7 +477,7 @@ export default function Channels() { - +