mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 01:47:03 +05:30
fix(common): set item keys in comments page
This commit is contained in:
parent
7b78438385
commit
dc06410fc4
1 changed files with 4 additions and 2 deletions
|
@ -80,7 +80,7 @@ internal fun CommentsPageInternal(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (commentNodes.isNotEmpty()) {
|
if (commentNodes.isNotEmpty()) {
|
||||||
item {
|
item(key = "comments_header") {
|
||||||
Text(
|
Text(
|
||||||
text = "Comments",
|
text = "Comments",
|
||||||
style = MaterialTheme.typography.labelLarge,
|
style = MaterialTheme.typography.labelLarge,
|
||||||
|
@ -88,7 +88,9 @@ internal fun CommentsPageInternal(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
commentNodes.forEach { node -> item { Node(node, htmlConverter, openUserProfile) } }
|
commentNodes.forEach { node ->
|
||||||
|
item(key = node.comment.shortId) { Node(node, htmlConverter, openUserProfile) }
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
item {
|
item {
|
||||||
Text(
|
Text(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue