diff --git a/feature/topic/src/main/java/com/google/samples/apps/nowinandroid/feature/topic/TopicScreen.kt b/feature/topic/src/main/java/com/google/samples/apps/nowinandroid/feature/topic/TopicScreen.kt index 075e7f881..3dbbe7da8 100644 --- a/feature/topic/src/main/java/com/google/samples/apps/nowinandroid/feature/topic/TopicScreen.kt +++ b/feature/topic/src/main/java/com/google/samples/apps/nowinandroid/feature/topic/TopicScreen.kt @@ -132,7 +132,7 @@ internal fun TopicScreen( uiState = topicUiState.followableTopic, ) } - TopicBody( + topicBody( name = topicUiState.followableTopic.topic.name, description = topicUiState.followableTopic.topic.longDescription, news = newsUiState, @@ -179,7 +179,7 @@ private fun topicItemsSize( } } -private fun LazyListScope.TopicBody( +private fun LazyListScope.topicBody( name: String, description: String, news: NewsUiState, @@ -253,7 +253,7 @@ private fun LazyListScope.userNewsResourceCards( private fun TopicBodyPreview() { NiaTheme { LazyColumn { - TopicBody( + topicBody( name = "Jetpack Compose", description = "Lorem ipsum maximum", news = NewsUiState.Success(emptyList()),