damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit f77a7bcb29d50b8a73121c4a12441bb1c6806306
parent 5cce18c8b6725ae28e8220746c611806e1a8fff0
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 10 May 2023 11:57:50 -0700

ui: show lud16 in attach wallet ui

Diffstat:
Mdamus/Views/Wallet/ConnectWalletView.swift | 6++++++
Mdamus/Views/Wallet/WalletView.swift | 4++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/damus/Views/Wallet/ConnectWalletView.swift b/damus/Views/Wallet/ConnectWalletView.swift @@ -46,6 +46,12 @@ struct ConnectWalletView: View { .font(.body) .foregroundColor(.gray) + if let lud16 = nwc.lud16 { + Text(lud16) + .font(.body) + .foregroundColor(.gray) + } + BigButton("Attach") { model.connect(nwc) } diff --git a/damus/Views/Wallet/WalletView.swift b/damus/Views/Wallet/WalletView.swift @@ -14,6 +14,10 @@ struct WalletView: View { VStack { Text("\(nwc.relay.id)") + if let lud16 = nwc.lud16 { + Text("\(lud16)") + } + BigButton("Disconnect Wallet") { self.model.disconnect() }