Merge pull request #1182 from LukasKorba/1181-No-and-some-transactions-at-the-same-time

[#1181] No and some transactions at the same time
This commit is contained in:
Lukas Korba 2024-04-09 12:23:15 +02:00 committed by GitHub
commit efb05a5913
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 11 deletions

View File

@ -23,18 +23,19 @@ public struct TransactionListView: View {
.listRowBackground(Asset.Colors.shade97.color)
.listRowSeparator(.hidden)
.padding(.top, 30)
} else {
ForEach(viewStore.transactionList) { transaction in
TransactionRowView(
viewStore: viewStore,
transaction: transaction,
tokenName: tokenName,
isLatestTransaction: viewStore.isLatestTransaction(id: transaction.id)
)
.listRowInsets(EdgeInsets())
}
.listRowBackground(Asset.Colors.shade97.color)
.listRowSeparator(.hidden)
}
ForEach(viewStore.transactionList) { transaction in
TransactionRowView(
viewStore: viewStore,
transaction: transaction,
tokenName: tokenName,
isLatestTransaction: viewStore.isLatestTransaction(id: transaction.id)
)
.listRowInsets(EdgeInsets())
}
.listRowBackground(Asset.Colors.shade97.color)
.listRowSeparator(.hidden)
}
.disabled(viewStore.transactionList.isEmpty)
.background(Asset.Colors.shade97.color)