wallet: refactor, make it work with ln tip button

Changelog-Added: Added option to choose default wallet
This commit is contained in:
William Casarin
2022-12-31 09:33:36 -08:00
parent 0384191060
commit 6e709058c0
6 changed files with 42 additions and 45 deletions

View File

@@ -21,7 +21,7 @@ enum Wallet: String, CaseIterable, Identifiable {
}
// New url prefixes needed to be added to LSApplicationQueriesSchemes
case systemdefaultwallet
case system_default_wallet
case strike
case cashapp
case muun
@@ -34,7 +34,7 @@ enum Wallet: String, CaseIterable, Identifiable {
var model: Model {
switch self {
case .systemdefaultwallet:
case .system_default_wallet:
return .init(index: -1, tag: "systemdefaultwallet", displayName: "Local default",
link: "lightning:", appStoreLink: "lightning:", image: "")
case .strike: