feat: remove wallet button
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Kieran 2023-12-12 13:55:18 +00:00
parent f0af0c81f0
commit 15806c56d0
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 12 additions and 6 deletions

View File

@ -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()}
</>

View File

@ -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)));
}
}
}
}