mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45:27 +02:00
Don't pass unnecessary LazyListState
This commit is contained in:
parent
4e28cdecc5
commit
f88c85bcdc
@ -144,7 +144,6 @@ private fun LeftSideScreen(
|
|||||||
chosenUnitGroup = uiState.unitGroup,
|
chosenUnitGroup = uiState.unitGroup,
|
||||||
items = uiState.shownUnitGroups,
|
items = uiState.shownUnitGroups,
|
||||||
selectAction = updateUnitGroup,
|
selectAction = updateUnitGroup,
|
||||||
lazyListState = chipsRowLazyListState,
|
|
||||||
navigateToSettingsAction = navigateToUnitGroups
|
navigateToSettingsAction = navigateToUnitGroups
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
@ -119,7 +119,6 @@ fun ChipsFlexRow(
|
|||||||
chosenUnitGroup: UnitGroup?,
|
chosenUnitGroup: UnitGroup?,
|
||||||
selectAction: (UnitGroup?) -> Unit,
|
selectAction: (UnitGroup?) -> Unit,
|
||||||
navigateToSettingsAction: () -> Unit,
|
navigateToSettingsAction: () -> Unit,
|
||||||
lazyListState: LazyListState
|
|
||||||
) {
|
) {
|
||||||
var expanded by remember { mutableStateOf(false) }
|
var expanded by remember { mutableStateOf(false) }
|
||||||
val transition = updateTransition(expanded, label = "Expanded transition")
|
val transition = updateTransition(expanded, label = "Expanded transition")
|
||||||
@ -210,6 +209,5 @@ fun PreviewChipsFlowRow() {
|
|||||||
chosenUnitGroup = selected,
|
chosenUnitGroup = selected,
|
||||||
selectAction = { selectAction(it) },
|
selectAction = { selectAction(it) },
|
||||||
navigateToSettingsAction = {},
|
navigateToSettingsAction = {},
|
||||||
lazyListState = rememberLazyListState()
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user