diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/AgeFieldHelper.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/AgeFieldHelper.kt index f62bab9f3..c769d90a6 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/AgeFieldHelper.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/AgeFieldHelper.kt @@ -25,11 +25,11 @@ fun TimeUnitSelector( ) { RowComponentContainer( modifier = Modifier + .background(color = SurfaceColor.Surface, Shape.SmallBottom) .padding( start = Spacing.Spacing8, end = Spacing.Spacing8, - ) - .background(color = SurfaceColor.Surface, Shape.SmallBottom), + ), ) { val options = TimeUnitValues.values().map { RadioButtonData(it.value, optionSelected == it.value, true, provideStringResource(it.value)) diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/RadioButton.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/RadioButton.kt index 0a2e30a9a..3f98c931d 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/RadioButton.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/RadioButton.kt @@ -160,27 +160,6 @@ fun RadioButtonBlock( } } -@Composable -fun AgeFieldHelper( - orientation: Orientation, - options: List, - optionSelected: RadioButtonData, - onClick: (RadioButtonData) -> Unit, -) { - RowComponentContainer( - modifier = Modifier - .padding( - start = Spacing.Spacing8, - end = Spacing.Spacing8, - ) - .background(color = SurfaceColor.Surface, Shape.SmallBottom), - ) { - RadioButtonBlock(orientation, options, optionSelected) { - onClick - } - } -} - data class RadioButtonData( val uid: String, val selected: Boolean,