This commit is contained in:
parent
f0af0c81f0
commit
15806c56d0
@ -190,9 +190,18 @@ export default function WalletPage() {
|
|||||||
if (!wallet?.isReady()) return;
|
if (!wallet?.isReady()) return;
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="p br b">
|
<div className="p br b flex justify-between">
|
||||||
<div>{info?.alias}</div>
|
<div>
|
||||||
{walletBalance()}
|
<div>{info?.alias}</div>
|
||||||
|
{walletBalance()}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{walletState.config?.id && (
|
||||||
|
<AsyncButton onClick={() => Wallets.remove(unwrap(walletState.config?.id))}>
|
||||||
|
<FormattedMessage defaultMessage="Remove" id="G/yZLu" />
|
||||||
|
</AsyncButton>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{walletHistory()}
|
{walletHistory()}
|
||||||
</>
|
</>
|
||||||
|
@ -235,9 +235,6 @@ export class WalletStore extends ExternalStore<WalletStoreSnapshot> {
|
|||||||
case WalletKind.NWC: {
|
case WalletKind.NWC: {
|
||||||
return new NostrConnectWallet(unwrap(cfg.data));
|
return new NostrConnectWallet(unwrap(cfg.data));
|
||||||
}
|
}
|
||||||
case WalletKind.Cashu: {
|
|
||||||
return import("./Cashu").then(({ CashuWallet }) => new CashuWallet(unwrap(cfg.data)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user