Skip to content

Commit

Permalink
[#395] Review: Replace enabled checkbox customization by switch
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinea authored and florentmaitre committed Jan 16, 2023
1 parent 70e51d7 commit 4f3a6ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import coil.compose.rememberAsyncImagePainter
import com.orange.ods.compose.component.chip.OdsChip
import com.orange.ods.compose.component.chip.OdsChoiceChip
import com.orange.ods.compose.component.chip.OdsChoiceChipsFlowRow
import com.orange.ods.compose.component.list.OdsCheckboxTrailing
import com.orange.ods.compose.component.list.OdsListItem
import com.orange.ods.compose.component.list.OdsSwitchTrailing
import com.orange.ods.compose.text.OdsTextBody2
import com.orange.ods.demo.R
import com.orange.ods.demo.domain.recipes.LocalRecipes
Expand Down Expand Up @@ -75,7 +75,7 @@ fun Chip() {

OdsListItem(
text = stringResource(id = R.string.component_state_enabled),
trailing = OdsCheckboxTrailing(
trailing = OdsSwitchTrailing(
checked = chipCustomizationState.enabled
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import com.google.accompanist.flowlayout.FlowRow
import com.orange.ods.compose.component.chip.OdsChoiceChip
import com.orange.ods.compose.component.chip.OdsChoiceChipsFlowRow
import com.orange.ods.compose.component.chip.OdsFilterChip
import com.orange.ods.compose.component.list.OdsCheckboxTrailing
import com.orange.ods.compose.component.list.OdsListItem
import com.orange.ods.compose.component.list.OdsSwitchTrailing
import com.orange.ods.demo.R
import com.orange.ods.demo.domain.recipes.Ingredient
import com.orange.ods.demo.domain.recipes.LocalRecipes
Expand Down Expand Up @@ -60,7 +60,7 @@ fun ChipFilter() {

OdsListItem(
text = stringResource(id = R.string.component_state_enabled),
trailing = OdsCheckboxTrailing(
trailing = OdsSwitchTrailing(
checked = enabled
)
)
Expand Down

0 comments on commit 4f3a6ec

Please sign in to comment.