mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-02-11 09:14:23 +01:00
Remove swap functionality for now
This commit is contained in:
committed by
Tony Giorgio
parent
dc239c1a47
commit
8608c4dd85
@@ -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 (
|
||||
<VStack>
|
||||
<Switch>
|
||||
@@ -90,16 +84,6 @@ export function BalanceBox(props: { loading?: boolean; small?: boolean }) {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Show
|
||||
when={state.balance?.federation || 0n > 0n}
|
||||
>
|
||||
<div class="self-end justify-self-end">
|
||||
<A href="/swaplightning" class={STYLE}>
|
||||
<Shuffle class="h-6 w-6" />
|
||||
</A>
|
||||
</div>
|
||||
</Show>
|
||||
</div>
|
||||
</Show>
|
||||
</FancyCard>
|
||||
@@ -184,13 +168,6 @@ export function BalanceBox(props: { loading?: boolean; small?: boolean }) {
|
||||
<Show when={state.balance?.unconfirmed === 0n}>
|
||||
<div />
|
||||
</Show>
|
||||
<Show when={usableOnchain() > 0n}>
|
||||
<div class="self-end justify-self-end">
|
||||
<A href="/swap" class={STYLE}>
|
||||
<Shuffle class="h-6 w-6" />
|
||||
</A>
|
||||
</div>
|
||||
</Show>
|
||||
</div>
|
||||
</div>
|
||||
</Show>
|
||||
|
||||
Reference in New Issue
Block a user