ui: show lud16 in attach wallet ui

This commit is contained in:
William Casarin
2023-05-10 11:57:50 -07:00
parent 5cce18c8b6
commit f77a7bcb29
2 changed files with 10 additions and 0 deletions

View File

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

View File

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