From 8608c4dd858ad9f37ff2ca88f4aa5c3891acb526 Mon Sep 17 00:00:00 2001 From: Tony Giorgio Date: Thu, 18 Apr 2024 10:21:44 -0500 Subject: [PATCH] Remove swap functionality for now --- src/components/BalanceBox.tsx | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/src/components/BalanceBox.tsx b/src/components/BalanceBox.tsx index c714974d..905d9cf3 100644 --- a/src/components/BalanceBox.tsx +++ b/src/components/BalanceBox.tsx @@ -1,5 +1,5 @@ -import { A, useNavigate } from "@solidjs/router"; -import { Shuffle, Users } from "lucide-solid"; +import { useNavigate } from "@solidjs/router"; +import { Users } from "lucide-solid"; import { Match, Show, Switch } from "solid-js"; import { @@ -43,9 +43,6 @@ export function LoadingShimmer(props: { center?: boolean; small?: boolean }) { ); } -const STYLE = - "px-2 py-1 rounded-xl text-sm flex gap-2 items-center font-semibold"; - export function BalanceBox(props: { loading?: boolean; small?: boolean }) { const [state, _actions] = useMegaStore(); const navigate = useNavigate(); @@ -56,9 +53,6 @@ export function BalanceBox(props: { loading?: boolean; small?: boolean }) { (state.balance?.unconfirmed || 0n) + (state.balance?.force_close || 0n); - const usableOnchain = () => - (state.balance?.confirmed || 0n) + (state.balance?.unconfirmed || 0n); - return ( @@ -90,16 +84,6 @@ export function BalanceBox(props: { loading?: boolean; small?: boolean }) { /> - - 0n} - > -
- - - -
-
@@ -184,13 +168,6 @@ export function BalanceBox(props: { loading?: boolean; small?: boolean }) {
- 0n}> -
- - - -
-