diff --git a/frontend/src/screens/wallet/index.tsx b/frontend/src/screens/wallet/index.tsx index 7ea55733..c5d99143 100644 --- a/frontend/src/screens/wallet/index.tsx +++ b/frontend/src/screens/wallet/index.tsx @@ -1,10 +1,4 @@ -import { - ArrowDown, - ArrowDownIcon, - ArrowUp, - ArrowUpIcon, - CreditCard, -} from "lucide-react"; +import { ArrowDownIcon, ArrowUpIcon, CreditCard } from "lucide-react"; import { Link } from "react-router-dom"; import AppHeader from "src/components/AppHeader"; import BreezRedeem from "src/components/BreezRedeem"; @@ -12,18 +6,11 @@ import ExternalLink from "src/components/ExternalLink"; import Loading from "src/components/Loading"; import TransactionsList from "src/components/TransactionsList"; import { Button } from "src/components/ui/button"; -import { - Card, - CardContent, - CardFooter, - CardHeader, - CardTitle, -} from "src/components/ui/card"; import { useBalances } from "src/hooks/useBalances"; import { useInfo } from "src/hooks/useInfo"; function Wallet() { - const { data: info, hasChannelManagement } = useInfo(); + const { data: info } = useInfo(); const { data: balances } = useBalances(); if (!info || !balances) { @@ -63,75 +50,6 @@ function Wallet() { -
- - - - Spending Balance - - - - - {!balances && ( -
-
-
-
-
- )} - {balances && ( -
- {new Intl.NumberFormat(undefined, {}).format( - Math.floor(balances.lightning.totalSpendable / 1000) - )}{" "} - sats -
- )} -
- {hasChannelManagement && ( - - - - - - )} -
- {hasChannelManagement && ( - - - - Receiving Capacity - - - - - {!balances && ( -
-
-
-
-
- )} -
- {balances && ( - <> - {new Intl.NumberFormat().format( - Math.floor(balances.lightning.totalReceivable / 1000) - )}{" "} - sats - - )} -
-
- - - - - -
- )} -
- );