Fix tests and warnings

This commit is contained in:
ganfra 2023-12-14 13:13:11 +01:00
parent d3e1fea3e4
commit bb7123afbd
6 changed files with 18 additions and 10 deletions

View file

@ -64,9 +64,9 @@ import kotlinx.collections.immutable.ImmutableList
@Composable
fun PollHistoryView(
state: PollHistoryState,
modifier: Modifier = Modifier,
onEditPoll: (EventId) -> Unit,
goBack: () -> Unit,
modifier: Modifier = Modifier,
) {
fun onLoadMore() {
@ -118,7 +118,7 @@ fun PollHistoryView(
HorizontalPager(
state = pagerState,
userScrollEnabled = false,
modifier = modifier.fillMaxSize()
modifier = Modifier.fillMaxSize()
) { page ->
val filter = PollHistoryFilter.entries[page]
val pollHistoryItems = state.pollHistoryForFilter(filter)