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,
|
postId = postId,
|
||||||
getDetails = viewModel::getPostComments,
|
getDetails = viewModel::getPostComments,
|
||||||
modifier = Modifier.navigationBarsPadding(),
|
modifier = Modifier.navigationBarsPadding(),
|
||||||
postActions = postActions
|
postActions = postActions,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue