spotlessApply
This commit is contained in:
+5
-2
@@ -97,7 +97,10 @@ fun WalletTransactionsScreen(
|
||||
|
||||
val shouldLoadMore by remember {
|
||||
derivedStateOf {
|
||||
val lastVisibleIndex = listState.layoutInfo.visibleItemsInfo.lastOrNull()?.index ?: 0
|
||||
val lastVisibleIndex =
|
||||
listState.layoutInfo.visibleItemsInfo
|
||||
.lastOrNull()
|
||||
?.index ?: 0
|
||||
val totalItems = listState.layoutInfo.totalItemsCount
|
||||
lastVisibleIndex >= totalItems - 5 && !isLoadingMore && hasMore && transactions.isNotEmpty()
|
||||
}
|
||||
@@ -386,7 +389,7 @@ private fun TransactionUserName(
|
||||
)
|
||||
} else {
|
||||
Text(
|
||||
text = fallbackName ?: pubkeyHex.take(8) + "...",
|
||||
text = fallbackName ?: (pubkeyHex.take(8) + "..."),
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
fontWeight = FontWeight.Medium,
|
||||
maxLines = 1,
|
||||
|
||||
-1
@@ -40,7 +40,6 @@ import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.asStateFlow
|
||||
import kotlinx.coroutines.flow.combine
|
||||
import kotlinx.coroutines.flow.stateIn
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
sealed class SendState {
|
||||
|
||||
Reference in New Issue
Block a user