Updated on 2026-08-14

This commit is contained in:
Tangem 2023-09-28 12:25:33 +05:00
parent bc3534c277
commit 6a15cfd2e4
5 changed files with 96 additions and 38 deletions

View file

@ -67,16 +67,17 @@ private fun LazyListScope.contentItems(
},
contentType = txHistoryItems.itemContentType { it::class.java },
itemContent = { index ->
val item = txHistoryItems[index]!!
TxHistoryListItem(
state = item,
modifier = modifier
.animateItemPlacement()
.roundedShapeItemDecoration(
currentIndex = index,
lastIndex = txHistoryItems.itemSnapshotList.lastIndex,
),
)
txHistoryItems[index]?.let { item ->
TxHistoryListItem(
state = item,
modifier = modifier
.animateItemPlacement()
.roundedShapeItemDecoration(
currentIndex = index,
lastIndex = txHistoryItems.itemSnapshotList.lastIndex,
),
)
}
},
)
}