Skip to content

Commit

Permalink
[CHORE/#16] 매개변수 위치 및 함수명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Jul 7, 2024
1 parent 7062258 commit 5a860ac
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ import com.terning.core.designsystem.theme.TerningTheme
@Composable
fun RectangleButton(
modifier: Modifier = Modifier,
isEnabled: Boolean = true,
text: String = "",
style: TextStyle,
paddingVertical: Dp,
isEnabled: Boolean = true,
text: String = "",
onButtonClick: () -> Unit,
) {
TerningBasicButton(
modifier = modifier,
style = style,
paddingVertical = paddingVertical,
isEnabled = isEnabled,
text = text,
shape = RoundedCornerShape(0.dp),
onButtonClick = onButtonClick,
text = text,
style = style,
paddingVertical = paddingVertical
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ import com.terning.core.designsystem.theme.TerningTheme
@Composable
fun RoundButton(
modifier: Modifier = Modifier,
isEnabled: Boolean = true,
text: String = "",
style: TextStyle,
paddingVertical: Dp,
roundedCornerShape: Dp,
cornerRadius: Dp,
isEnabled: Boolean = true,
text: String = "",
onButtonClick: () -> Unit,
) {
TerningBasicButton(
modifier = modifier,
style = style,
paddingVertical = paddingVertical,
shape = RoundedCornerShape(cornerRadius),
isEnabled = isEnabled,
shape = RoundedCornerShape(roundedCornerShape),
onButtonClick = onButtonClick,
text = text,
style = style,
paddingVertical = paddingVertical
onButtonClick = onButtonClick,
)
}

Expand All @@ -39,7 +39,7 @@ fun RoundButtonPreview() {
style = TerningTheme.typography.button0,
text = "RoundButton",
paddingVertical = 19.dp,
roundedCornerShape = 10.dp,
cornerRadius = 10.dp,
onButtonClick = {}
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import com.terning.core.util.NoRippleTheme
@Composable
fun TerningBasicButton(
modifier: Modifier = Modifier,
isEnabled: Boolean = true,
text: String = "",
shape: Shape,
style: TextStyle,
paddingVertical: Dp,
isEnabled: Boolean = true,
text: String = "",
onButtonClick: () -> Unit
) {
val interactionSource = remember { MutableInteractionSource() }
Expand Down

0 comments on commit 5a860ac

Please sign in to comment.