Skip to content

Commit

Permalink
chore/#33: SizeSelection, TemperatureSelection if-else 구조 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kangyein9892 committed Nov 26, 2024
1 parent 852290c commit cea839f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,16 +206,8 @@ fun SizeButton(

Text(
text = stringResource(R.string.menu_detail_modal_size_regular_text),
color = if (isSelected){
Black
} else {
Gray60
},
style = if (isSelected){
TwosomeHeartTypography.body2B13
} else {
TwosomeHeartTypography.body2R13
},
color = if (isSelected) Black else Gray60,
style = if (isSelected) TwosomeHeartTypography.body2B13 else TwosomeHeartTypography.body2R13,
textAlign = TextAlign.Center
)
}
Expand All @@ -229,16 +221,8 @@ fun SizeButton(

Text(
text = stringResource(R.string.menu_detail_modal_size_large_text),
color = if (isSelected){
Black
} else {
Gray60
},
style = if (isSelected){
TwosomeHeartTypography.body2B13
} else {
TwosomeHeartTypography.body2R13
},
color = if (isSelected) Black else Gray60,
style = if (isSelected) TwosomeHeartTypography.body2B13 else TwosomeHeartTypography.body2R13,
textAlign = TextAlign.Center
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,8 @@ fun TemperatureButton(
) {
Text(
text = temperatureType.type,
color = if (isSelected){
White
} else {
Gray60
},
style = if (isSelected){
TwosomeHeartTypography.body2B13
} else {
TwosomeHeartTypography.body2R13
},
color = if (isSelected) White else Gray60,
style = if (isSelected) TwosomeHeartTypography.body2B13 else TwosomeHeartTypography.body2R13,
textAlign = TextAlign.Center
)
}
Expand Down

0 comments on commit cea839f

Please sign in to comment.