all: add trailing commas wherever missing

This commit is contained in:
Harsh Shandilya 2022-02-28 21:32:20 +05:30
parent 21ced135b6
commit 35d062cbec
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
3 changed files with 6 additions and 6 deletions

View file

@ -64,7 +64,7 @@ fun CommentsHeader(
PostLink(
link = postDetails.url,
modifier =
Modifier.clickable { postActions.viewPost(postDetails.url, postDetails.commentsUrl) }
Modifier.clickable { postActions.viewPost(postDetails.url, postDetails.commentsUrl) },
)
Spacer(Modifier.height(4.dp))
}
@ -90,14 +90,14 @@ fun PostLink(
Box(
modifier.background(
color = MaterialTheme.colorScheme.secondary,
shape = RoundedCornerShape(8.dp)
shape = RoundedCornerShape(8.dp),
)
) {
Row(modifier = Modifier.padding(16.dp), horizontalArrangement = Arrangement.spacedBy(16.dp)) {
Icon(
painter = webIcon,
contentDescription = null,
tint = MaterialTheme.colorScheme.onSecondary
tint = MaterialTheme.colorScheme.onSecondary,
)
Text(
text = link,

View file

@ -39,7 +39,7 @@ private fun CommentsPageInternal(
Text(
text = "Comments",
style = MaterialTheme.typography.labelLarge,
modifier = Modifier.padding(horizontal = 16.dp, vertical = 12.dp)
modifier = Modifier.padding(horizontal = 16.dp, vertical = 12.dp),
)
}
@ -56,7 +56,7 @@ private fun CommentsPageInternal(
style = MaterialTheme.typography.bodyLarge,
modifier = Modifier.fillMaxWidth().padding(16.dp),
fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center
textAlign = TextAlign.Center,
)
}
}