Skip to content

Commit

Permalink
[#599] Review: Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinea committed Sep 5, 2023
1 parent e13e9a9 commit b8e270f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ class OdsIconToggleButtonsRowIcon : OdsComponentIcon {
@UiModePreviews.Default
@Composable
private fun PreviewOdsIconToggleButtonsGroupRow() = Preview {
val iconToggleButtons = listOf(
val icons = listOf(
OdsIconToggleButtonsRowIcon(painterResource(id = android.R.drawable.ic_dialog_dialer), "Today"),
OdsIconToggleButtonsRowIcon(painterResource(id = android.R.drawable.ic_dialog_email), "Day"),
OdsIconToggleButtonsRowIcon(painterResource(id = android.R.drawable.ic_dialog_alert), "Month", false)
)
var selectedIndex by remember { mutableStateOf(0) }

OdsIconToggleButtonsRow(
icons = iconToggleButtons,
icons = icons,
selectedIndex = selectedIndex,
onSelectedIndexChange = { index -> selectedIndex = index }
)
Expand Down

0 comments on commit b8e270f

Please sign in to comment.