|
|
@ -132,7 +132,7 @@ internal fun TopicScreen(
|
|
|
|
uiState = topicUiState.followableTopic,
|
|
|
|
uiState = topicUiState.followableTopic,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
TopicBody(
|
|
|
|
topicBody(
|
|
|
|
name = topicUiState.followableTopic.topic.name,
|
|
|
|
name = topicUiState.followableTopic.topic.name,
|
|
|
|
description = topicUiState.followableTopic.topic.longDescription,
|
|
|
|
description = topicUiState.followableTopic.topic.longDescription,
|
|
|
|
news = newsUiState,
|
|
|
|
news = newsUiState,
|
|
|
@ -179,7 +179,7 @@ private fun topicItemsSize(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private fun LazyListScope.TopicBody(
|
|
|
|
private fun LazyListScope.topicBody(
|
|
|
|
name: String,
|
|
|
|
name: String,
|
|
|
|
description: String,
|
|
|
|
description: String,
|
|
|
|
news: NewsUiState,
|
|
|
|
news: NewsUiState,
|
|
|
@ -253,7 +253,7 @@ private fun LazyListScope.userNewsResourceCards(
|
|
|
|
private fun TopicBodyPreview() {
|
|
|
|
private fun TopicBodyPreview() {
|
|
|
|
NiaTheme {
|
|
|
|
NiaTheme {
|
|
|
|
LazyColumn {
|
|
|
|
LazyColumn {
|
|
|
|
TopicBody(
|
|
|
|
topicBody(
|
|
|
|
name = "Jetpack Compose",
|
|
|
|
name = "Jetpack Compose",
|
|
|
|
description = "Lorem ipsum maximum",
|
|
|
|
description = "Lorem ipsum maximum",
|
|
|
|
news = NewsUiState.Success(emptyList()),
|
|
|
|
news = NewsUiState.Success(emptyList()),
|
|
|
|