Skip to content

Commit

Permalink
fix : isDisabled 네이밍 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Apr 9, 2024
1 parent 06177d1 commit f01dbc1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fun SuffixTextField(
text: String,
modifier: Modifier = Modifier,
isError: Boolean = false,
isEnabled: Boolean = true,
isDisabled: Boolean = true,
placeHolder: String = "",
suffixLabel: String,
hintText: String = "",
Expand All @@ -53,7 +53,7 @@ fun SuffixTextField(
textColor = YdsTheme.colors.textSecondary,
),
isError = isError,
enabled = isEnabled,
enabled = isDisabled,
placeholder = {
YdsText(
text = placeHolder,
Expand Down Expand Up @@ -84,7 +84,7 @@ fun SuffixTextField(
style = YdsTheme.typography.caption1,
color = if (isError) {
YdsTheme.colors.textWarned
} else if (!isEnabled) {
} else if (!isDisabled) {
YdsTheme.colors.textDisabled
} else {
YdsTheme.colors.textTertiary
Expand All @@ -107,7 +107,7 @@ private fun PreviewSuffixTextField() {
Column {
SuffixTextField(
text = text1,
isError = isError, isEnabled = true,
isError = isError, isDisabled = true,
placeHolder = "플레이스 홀더",
onValueChange = { value ->
text1 = value
Expand All @@ -119,7 +119,7 @@ private fun PreviewSuffixTextField() {

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

0 comments on commit f01dbc1

Please sign in to comment.