Don't pass unnecessary LazyListState

This commit is contained in:
Sad Ellie 2023-10-13 12:33:14 +03:00
parent 4e28cdecc5
commit f88c85bcdc
2 changed files with 0 additions and 3 deletions

View File

@ -144,7 +144,6 @@ private fun LeftSideScreen(
chosenUnitGroup = uiState.unitGroup,
items = uiState.shownUnitGroups,
selectAction = updateUnitGroup,
lazyListState = chipsRowLazyListState,
navigateToSettingsAction = navigateToUnitGroups
)
} else {

View File

@ -119,7 +119,6 @@ fun ChipsFlexRow(
chosenUnitGroup: UnitGroup?,
selectAction: (UnitGroup?) -> Unit,
navigateToSettingsAction: () -> Unit,
lazyListState: LazyListState
) {
var expanded by remember { mutableStateOf(false) }
val transition = updateTransition(expanded, label = "Expanded transition")
@ -210,6 +209,5 @@ fun PreviewChipsFlowRow() {
chosenUnitGroup = selected,
selectAction = { selectAction(it) },
navigateToSettingsAction = {},
lazyListState = rememberLazyListState()
)
}