mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 06:14:21 +01:00
don't show balance until we're done loading
This commit is contained in:
committed by
benthecarman
parent
cb7fe64f6f
commit
152abb0e10
@@ -1,6 +1,6 @@
|
||||
import { createMemo, Match, Suspense, Switch } from "solid-js";
|
||||
|
||||
import { AmountFiat, AmountSats } from "~/components/Amount";
|
||||
import { AmountFiat, AmountSats, LoadingShimmer } from "~/components";
|
||||
import { useMegaStore } from "~/state/megaStore";
|
||||
|
||||
export function HomeBalance() {
|
||||
@@ -24,6 +24,9 @@ export function HomeBalance() {
|
||||
>
|
||||
<h1 class="flex w-full justify-center whitespace-nowrap text-2xl font-light text-white">
|
||||
<Switch>
|
||||
<Match when={state.load_stage !== "done"}>
|
||||
<LoadingShimmer small />
|
||||
</Match>
|
||||
<Match when={state.balanceView === "sats"}>
|
||||
<AmountSats
|
||||
amountSats={combinedBalance()}
|
||||
|
||||
Reference in New Issue
Block a user