mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-19 07:14:22 +01:00
redesigned send and receive
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { createResource, Show, Suspense } from "solid-js";
|
||||
import { ButtonLink, FancyCard } from "~/components/layout";
|
||||
import { Show, Suspense } from "solid-js";
|
||||
import { ButtonLink, FancyCard, Indicator } from "~/components/layout";
|
||||
import { useMegaStore } from "~/state/megaStore";
|
||||
import { Amount } from "./Amount";
|
||||
|
||||
@@ -10,12 +10,6 @@ function prettyPrintAmount(n?: number | bigint): string {
|
||||
return n.toLocaleString()
|
||||
}
|
||||
|
||||
function SyncingIndicator() {
|
||||
return (
|
||||
<div class="box-border animate-pulse px-2 py-1 -my-1 bg-white/70 rounded text-xs uppercase text-black">Syncing</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default function BalanceBox() {
|
||||
const [state, actions] = useMegaStore();
|
||||
|
||||
@@ -25,7 +19,7 @@ export default function BalanceBox() {
|
||||
<Amount amountSats={state.balance?.lightning || 0} showFiat />
|
||||
</FancyCard>
|
||||
|
||||
<FancyCard title="On-Chain" tag={state.is_syncing && <SyncingIndicator />}>
|
||||
<FancyCard title="On-Chain" tag={state.is_syncing && <Indicator>Syncing</Indicator>}>
|
||||
<div onClick={actions.sync}>
|
||||
<Amount amountSats={state.balance?.confirmed} showFiat />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user