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

@@ -16,7 +16,7 @@ struct WalletItem : Decodable, Identifiable, Hashable {
}
struct SelectWalletView: View {
@Binding var show_select_wallet: Bool
@Binding var showingSelectWallet: Bool
@Binding var invoice: String
@Environment(\.openURL) private var openURL
@State var invoice_copied: Bool = false
@@ -78,7 +78,7 @@ struct SelectWalletView: View {
}
}
}.navigationBarTitle(Text("Pay the lightning invoice"), displayMode: .inline).navigationBarItems(trailing: Button(action: {
self.show_select_wallet = false
self.showingSelectWallet = false
}) {
Text("Done").bold()
})
@@ -91,6 +91,6 @@ struct SelectWalletView_Previews: PreviewProvider {
@State static var invoice: String = ""
static var previews: some View {
SelectWalletView(show_select_wallet: $show, invoice: $invoice)
SelectWalletView(showingSelectWallet: $show, invoice: $invoice)
}
}