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
@@ -7,6 +7,7 @@ struct DashboardView: View {
@State private var showSeed = false
@State private var revealedSeed: String?
@State private var seedError: String?
@State private var selectedTransaction: TransactionRecord?
var body: some View {
VStack(alignment: .leading, spacing: 18) {
@@ -64,7 +65,12 @@ struct DashboardView: 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)
}
@@ -96,6 +102,11 @@ struct DashboardView: View {
MessageBanner(message: seedError, isError: true)
}
}
.sheet(item: $selectedTransaction) { record in
TransactionDetailView(record: record,
symbol: model.symbol,
chain: model.chain) { selectedTransaction = nil }
}
.sheet(isPresented: $showSeed) {
if let revealedSeed {
SeedRevealView(seed: revealedSeed, symbol: model.symbol) { showSeed = false }