mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 00:35:26 +02:00
Destructuring declaration
This commit is contained in:
parent
6170726749
commit
4fc4603cf0
@ -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()
|
||||
}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user