Skip to content

Commit

Permalink
[CHORE/#16] 파라미터 위치 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Jul 8, 2024
1 parent 9c5c0f0 commit eaf301b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ import com.terning.core.designsystem.theme.TerningTheme

@Composable
fun RectangleButton(
modifier: Modifier = Modifier,
style: TextStyle,
paddingVertical: Dp,
@StringRes text: Int,
isEnabled: Boolean = true,
onButtonClick: () -> Unit,
modifier: Modifier = Modifier,
isEnabled: Boolean = true
) {
TerningBasicButton(
modifier = modifier,
style = style,
paddingVertical = paddingVertical,
text = text,
onButtonClick = onButtonClick,
modifier = modifier,
isEnabled = isEnabled,
shape = RoundedCornerShape(0.dp),
onButtonClick = onButtonClick,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ import com.terning.core.designsystem.theme.TerningTheme

@Composable
fun RoundButton(
modifier: Modifier = Modifier,
style: TextStyle,
paddingVertical: Dp,
cornerRadius: Dp,
@StringRes text: Int,
isEnabled: Boolean = true,
onButtonClick: () -> Unit,
modifier: Modifier = Modifier,
isEnabled: Boolean = true,
) {
TerningBasicButton(
modifier = modifier,
style = style,
paddingVertical = paddingVertical,
shape = RoundedCornerShape(cornerRadius),
text = text,
isEnabled = isEnabled,
onButtonClick = onButtonClick,
isEnabled = isEnabled,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ import com.terning.core.util.NoRippleTheme

@Composable
fun TerningBasicButton(
modifier: Modifier = Modifier,
shape: Shape,
style: TextStyle,
paddingVertical: Dp,
@StringRes text: Int,
onButtonClick: () -> Unit,
modifier: Modifier = Modifier,
isEnabled: Boolean = true,
onButtonClick: () -> Unit
) {
val interactionSource = remember { MutableInteractionSource() }
val isPressed by interactionSource.collectIsPressedAsState()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ class TerningTypography internal constructor(
}
}


@Composable
fun TerningTypography(): TerningTypography {
return TerningTypography(
Expand Down

0 comments on commit eaf301b

Please sign in to comment.