Skip to content

Commit

Permalink
update: [ANDROAPP-5467] padding added
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAparicioAlbaAsenjo committed Sep 28, 2023
1 parent 1ff7739 commit df5493d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,27 +160,6 @@ fun RadioButtonBlock(
}
}

@Composable
fun AgeFieldHelper(
orientation: Orientation,
options: List<RadioButtonData>,
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,
Expand Down

0 comments on commit df5493d

Please sign in to comment.