Show Monero accounts as their own section below the wallet card
This commit is contained in:
@@ -177,13 +177,6 @@ struct HomeView: View {
|
||||
Spacer()
|
||||
}
|
||||
|
||||
if model.chain == .xmr, !model.moneroAccounts.isEmpty {
|
||||
// Cake Wallet style: a deck of account cards, drag the front card
|
||||
// away to bring the next one up.
|
||||
AccountStack(accounts: model.moneroAccounts,
|
||||
fiat: { model.fiatValue(of: $0, chain: .xmr) },
|
||||
onQR: { qrAddress = AddressQR(title: $0.title, address: $0.address) })
|
||||
} else {
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
Text("Balance")
|
||||
.font(.system(size: 11, weight: .medium))
|
||||
@@ -203,12 +196,20 @@ struct HomeView: View {
|
||||
}
|
||||
}
|
||||
|
||||
if model.chain == .xrp {
|
||||
AddressRow(address: model.displayAddress)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if model.chain == .xmr, !model.moneroAccounts.isEmpty {
|
||||
// Cake Wallet style: a deck of account cards as its own section, drag
|
||||
// the front card away to bring the next one up.
|
||||
AccountStack(accounts: model.moneroAccounts,
|
||||
fiat: { model.fiatValue(of: $0, chain: .xmr) },
|
||||
onQR: { qrAddress = AddressQR(title: $0.title, address: $0.address) })
|
||||
}
|
||||
|
||||
if model.chain == .xmr {
|
||||
SyncCard()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user