Destructuring declaration

This commit is contained in:
Sad Ellie 2022-08-18 21:44:53 +03:00
parent 6170726749
commit 4fc4603cf0

View File

@ -71,12 +71,12 @@ fun AlertDialogWithList(
Text(supportText)
}
LazyColumn {
items(listItems.toList()) {
items(listItems.toList()) { (option, label) ->
CustomDialogContentListItem(
label = stringResource(it.second),
selected = selectedItemIndex == it.first,
label = stringResource(label),
selected = selectedItemIndex == option,
onClick = {
selectAction(it.first)
selectAction(option)
dismissAction()
}
)