Show full transaction details for Monero and XRP

This commit is contained in:
2026-09-20 00:43:09 +08:00
parent caca4321cc
commit 021672b47c
7 changed files with 228 additions and 13 deletions
+12 -1
View File
@@ -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)
}