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