Skip to content

Commit

Permalink
fix : 코드리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Apr 10, 2024
1 parent f01dbc1 commit 396a063
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ import com.yourssu.design.system.compose.base.YdsText
@Composable
fun SuffixTextField(
text: String,
suffixLabel: String,
modifier: Modifier = Modifier,
isError: Boolean = false,
isDisabled: Boolean = true,
isDisabled: Boolean = false,
placeHolder: String = "",
suffixLabel: String,
hintText: String = "",
onValueChange: (value: String) -> Unit,
keyboardOptions: KeyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Text),
Expand All @@ -53,7 +53,7 @@ fun SuffixTextField(
textColor = YdsTheme.colors.textSecondary,
),
isError = isError,
enabled = isDisabled,
enabled = !isDisabled,
placeholder = {
YdsText(
text = placeHolder,
Expand Down Expand Up @@ -107,7 +107,7 @@ private fun PreviewSuffixTextField() {
Column {
SuffixTextField(
text = text1,
isError = isError, isDisabled = true,
isError = isError, isDisabled = false,
placeHolder = "플레이스 홀더",
onValueChange = { value ->
text1 = value
Expand All @@ -119,7 +119,7 @@ private fun PreviewSuffixTextField() {

SuffixTextField(
text = text2,
isDisabled = false,
isDisabled = true,
onValueChange = { value ->
text2 = value
},
Expand Down

0 comments on commit 396a063

Please sign in to comment.