mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
Fix bugs from test #2
Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
This commit is contained in:
@@ -542,6 +542,7 @@ fun ListItem(
|
||||
modifier: Modifier = Modifier,
|
||||
bodyModifier: Modifier = Modifier,
|
||||
headline: String,
|
||||
headlineSlot: (@Composable () -> Unit)? = null,
|
||||
supportingText: String? = null,
|
||||
supportingSlot: (@Composable () -> Unit)? = null,
|
||||
leadingContent: (@Composable () -> Unit)? = null,
|
||||
@@ -678,7 +679,7 @@ fun ListItem(
|
||||
}
|
||||
|
||||
ListItem(
|
||||
headlineContent = { Text(headline) },
|
||||
headlineContent = headlineSlot ?: { Text(headline) },
|
||||
supportingContent = {
|
||||
when {
|
||||
supportingSlot != null -> supportingSlot()
|
||||
|
||||
Reference in New Issue
Block a user