ui: show lud16 in attach wallet ui
This commit is contained in:
@@ -46,6 +46,12 @@ struct ConnectWalletView: View {
|
|||||||
.font(.body)
|
.font(.body)
|
||||||
.foregroundColor(.gray)
|
.foregroundColor(.gray)
|
||||||
|
|
||||||
|
if let lud16 = nwc.lud16 {
|
||||||
|
Text(lud16)
|
||||||
|
.font(.body)
|
||||||
|
.foregroundColor(.gray)
|
||||||
|
}
|
||||||
|
|
||||||
BigButton("Attach") {
|
BigButton("Attach") {
|
||||||
model.connect(nwc)
|
model.connect(nwc)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ struct WalletView: View {
|
|||||||
VStack {
|
VStack {
|
||||||
Text("\(nwc.relay.id)")
|
Text("\(nwc.relay.id)")
|
||||||
|
|
||||||
|
if let lud16 = nwc.lud16 {
|
||||||
|
Text("\(lud16)")
|
||||||
|
}
|
||||||
|
|
||||||
BigButton("Disconnect Wallet") {
|
BigButton("Disconnect Wallet") {
|
||||||
self.model.disconnect()
|
self.model.disconnect()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user