fix ktlint error 'Exceeded max line length'

pull/246/head
Robert 2 years ago
parent c479fd4c20
commit 619e99b77e

@ -524,7 +524,9 @@ fun NiaCatalog() {
NiaTopicTag( NiaTopicTag(
expanded = expandedTopic == "Topic 1", expanded = expandedTopic == "Topic 1",
followed = firstFollowed, followed = firstFollowed,
onDropMenuToggle = { show -> expandedTopic = if (show) "Topic 1" else null }, onDropMenuToggle = { show ->
expandedTopic = if (show) "Topic 1" else null
},
onFollowClick = { firstFollowed = true }, onFollowClick = { firstFollowed = true },
onUnfollowClick = { firstFollowed = false }, onUnfollowClick = { firstFollowed = false },
onBrowseClick = {}, onBrowseClick = {},
@ -537,7 +539,9 @@ fun NiaCatalog() {
NiaTopicTag( NiaTopicTag(
expanded = expandedTopic == "Topic 2", expanded = expandedTopic == "Topic 2",
followed = secondFollowed, followed = secondFollowed,
onDropMenuToggle = { show -> expandedTopic = if (show) "Topic 2" else null }, onDropMenuToggle = { show ->
expandedTopic = if (show) "Topic 2" else null
},
onFollowClick = { secondFollowed = true }, onFollowClick = { secondFollowed = true },
onUnfollowClick = { secondFollowed = false }, onUnfollowClick = { secondFollowed = false },
onBrowseClick = {}, onBrowseClick = {},

@ -278,7 +278,9 @@ fun NewsResourceTopics(
NiaTopicTag( NiaTopicTag(
expanded = expandedTopic == topic.id, expanded = expandedTopic == topic.id,
followed = true, // ToDo: Check if topic is followed followed = true, // ToDo: Check if topic is followed
onDropMenuToggle = { show -> expandedTopic = if (show) topic.id else null }, onDropMenuToggle = { show ->
expandedTopic = if (show) topic.id else null
},
onFollowClick = { }, // ToDo onFollowClick = { }, // ToDo
onUnfollowClick = { }, // ToDo onUnfollowClick = { }, // ToDo
onBrowseClick = { }, // ToDo onBrowseClick = { }, // ToDo

Loading…
Cancel
Save