allow opening wallet selector for profile LN button

This commit is contained in:
Suhail Saqan
2022-12-24 20:44:10 -06:00
parent 70756938d7
commit dd50ffd555
3 changed files with 20 additions and 11 deletions

View File

@@ -9,13 +9,13 @@ import SwiftUI
struct InvoiceView: View {
let invoice: Invoice
@State var show_select_wallet: Bool = false
@State var showingSelectWallet: Bool = false
@State var inv: String = ""
var PayButton: some View {
Button("Pay") {
inv = invoice.string
show_select_wallet = true
showingSelectWallet = true
}
.buttonStyle(.bordered)
}
@@ -39,8 +39,8 @@ struct InvoiceView: View {
.zIndex(5.0)
}
.padding()
} .sheet(isPresented: $show_select_wallet, onDismiss: {show_select_wallet = false}) {
SelectWalletView(show_select_wallet: $show_select_wallet, invoice: $inv)
}.sheet(isPresented: $showingSelectWallet, onDismiss: {showingSelectWallet = false}) {
SelectWalletView(showingSelectWallet: $showingSelectWallet, invoice: $inv)
}
}
}