Merge pull request #431 from SaeedNoshadi89/show-all-news-authors

Show all authors in the news card
pull/368/head
Milosz Moczkowski 2 years ago committed by GitHub
commit cec83dc316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -156,12 +156,12 @@ fun NewsResourceAuthors(
authors: List<Author>
) {
if (authors.isNotEmpty()) {
// Only display first author for now
val author = authors[0]
// display all authors
val authorNameFormatted =
authors.joinToString(separator = ", ") { author -> author.name }
.uppercase(Locale.getDefault())
val authorNameFormatted = author.name.uppercase(Locale.getDefault())
val authorImageUrl = author.imageUrl
val authorImageUrl = authors[0].imageUrl
val authorImageModifier = Modifier
.clip(CircleShape)

Loading…
Cancel
Save