Add missing modifier

This commit is contained in:
Florian Renaud 2023-08-22 16:11:57 +02:00
parent df51615d9b
commit b39f805da5

View file

@ -70,8 +70,10 @@ fun PollContentView(
@Composable @Composable
internal fun PollTitle( internal fun PollTitle(
title: String, title: String,
modifier: Modifier = Modifier
) { ) {
Row( Row(
modifier = modifier,
horizontalArrangement = Arrangement.spacedBy(12.dp), horizontalArrangement = Arrangement.spacedBy(12.dp),
) { ) {
Icon( Icon(
@ -90,10 +92,12 @@ internal fun PollTitle(
internal fun PollAnswers( internal fun PollAnswers(
answerItems: ImmutableList<PollAnswerItem>, answerItems: ImmutableList<PollAnswerItem>,
onAnswerSelected: (PollAnswer) -> Unit, onAnswerSelected: (PollAnswer) -> Unit,
modifier: Modifier = Modifier,
) { ) {
answerItems.forEach { answerItem -> answerItems.forEach { answerItem ->
PollAnswerView( PollAnswerView(
modifier = modifier,
answerItem = answerItem, answerItem = answerItem,
onClick = { onAnswerSelected(answerItem.answer) } onClick = { onAnswerSelected(answerItem.answer) }
) )
@ -103,10 +107,11 @@ internal fun PollAnswers(
@Composable @Composable
internal fun ColumnScope.DisclosedPollBottomNotice( internal fun ColumnScope.DisclosedPollBottomNotice(
answerItems: ImmutableList<PollAnswerItem>, answerItems: ImmutableList<PollAnswerItem>,
modifier: Modifier = Modifier
) { ) {
val votesCount = answerItems.sumOf { it.votesCount } val votesCount = answerItems.sumOf { it.votesCount }
Text( Text(
modifier = Modifier.align(Alignment.End), modifier = modifier.align(Alignment.End),
style = ElementTheme.typography.fontBodyXsRegular, style = ElementTheme.typography.fontBodyXsRegular,
color = ElementTheme.colors.textSecondary, color = ElementTheme.colors.textSecondary,
text = stringResource(CommonStrings.common_poll_total_votes, votesCount), text = stringResource(CommonStrings.common_poll_total_votes, votesCount),
@ -114,9 +119,9 @@ internal fun ColumnScope.DisclosedPollBottomNotice(
} }
@Composable @Composable
fun ColumnScope.UndisclosedPollBottomNotice() { fun ColumnScope.UndisclosedPollBottomNotice(modifier: Modifier = Modifier) {
Text( Text(
modifier = Modifier modifier = modifier
.align(Alignment.Start) .align(Alignment.Start)
.padding(start = 34.dp), .padding(start = 34.dp),
style = ElementTheme.typography.fontBodyXsRegular, style = ElementTheme.typography.fontBodyXsRegular,