Skip to content

Commit

Permalink
[refactor/#185] 성별 컴포넌트 Corner Radius 파라미터화
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonsuKang committed Mar 3, 2025
1 parent ff14205 commit 5e15557
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/ui/src/main/java/com/yapp/ui/toggle/OrbitGenderToggle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ fun OrbitGenderToggle(
modifier: Modifier = Modifier,
height: Dp = 148.dp,
textStyle: TextStyle = OrbitTheme.typography.heading2SemiBold,
shape: RoundedCornerShape = RoundedCornerShape(16.dp),
) {
val interactionSource = remember { MutableInteractionSource() }
val isPressed by interactionSource.collectIsPressedAsState()
Expand Down Expand Up @@ -69,9 +70,9 @@ fun OrbitGenderToggle(
.border(
width = if (isPressed) 0.dp else 1.dp,
color = borderColor,
shape = RoundedCornerShape(16.dp),
shape = shape,
)
.background(backgroundColor, shape = RoundedCornerShape(16.dp))
.background(backgroundColor, shape = shape)
.clickable(
interactionSource = interactionSource,
indication = null,
Expand Down

0 comments on commit 5e15557

Please sign in to comment.