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