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

@ -165,7 +165,7 @@ fun LobstersApp(
postId = postId, postId = postId,
getDetails = viewModel::getPostComments, getDetails = viewModel::getPostComments,
modifier = Modifier.navigationBarsPadding(), modifier = Modifier.navigationBarsPadding(),
postActions = postActions postActions = postActions,
) )
} }
} }

View file

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

View file

@ -39,7 +39,7 @@ private fun CommentsPageInternal(
Text( Text(
text = "Comments", text = "Comments",
style = MaterialTheme.typography.labelLarge, 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, style = MaterialTheme.typography.bodyLarge,
modifier = Modifier.fillMaxWidth().padding(16.dp), modifier = Modifier.fillMaxWidth().padding(16.dp),
fontWeight = FontWeight.Bold, fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center textAlign = TextAlign.Center,
) )
} }
} }