Show full transaction details for Monero and XRP
This commit is contained in:
@@ -71,6 +71,7 @@ struct HomeView: View {
|
||||
@EnvironmentObject private var model: AppModel
|
||||
@Binding var route: Route
|
||||
@State private var showDeleteConfirm = false
|
||||
@State private var selectedTransaction: TransactionRecord?
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 18) {
|
||||
@@ -91,6 +92,11 @@ struct HomeView: View {
|
||||
MessageBanner(message: message, isError: false)
|
||||
}
|
||||
}
|
||||
.sheet(item: $selectedTransaction) { record in
|
||||
TransactionDetailView(record: record,
|
||||
symbol: model.symbol,
|
||||
chain: model.chain) { selectedTransaction = nil }
|
||||
}
|
||||
.confirmationDialog("Delete this wallet?",
|
||||
isPresented: $showDeleteConfirm,
|
||||
titleVisibility: .visible) {
|
||||
@@ -203,7 +209,12 @@ struct HomeView: View {
|
||||
.font(.system(size: 13, weight: .semibold))
|
||||
.foregroundStyle(Theme.muted)
|
||||
ForEach(model.transactions) { record in
|
||||
TransactionRow(record: record, symbol: model.symbol)
|
||||
Button {
|
||||
selectedTransaction = record
|
||||
} label: {
|
||||
TransactionRow(record: record, symbol: model.symbol)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
if record.id != model.transactions.last?.id {
|
||||
Divider().overlay(Theme.border)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user