mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 10:37:05 +05:30
all: add trailing commas wherever missing
This commit is contained in:
parent
21ced135b6
commit
35d062cbec
3 changed files with 6 additions and 6 deletions
|
@ -165,7 +165,7 @@ fun LobstersApp(
|
|||
postId = postId,
|
||||
getDetails = viewModel::getPostComments,
|
||||
modifier = Modifier.navigationBarsPadding(),
|
||||
postActions = postActions
|
||||
postActions = postActions,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue