Skip to content

Commit d8605d0

Browse files
committed
refactor :: 중복 if 제거
1 parent 9e6efc7 commit d8605d0

File tree

1 file changed

+3
-8
lines changed
  • core/design-system/src/main/java/team/retum/jobisdesignsystemv2/textfield

1 file changed

+3
-8
lines changed

core/design-system/src/main/java/team/retum/jobisdesignsystemv2/textfield/JobisTextField.kt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,10 @@ private fun JobisVerificationButton(
108108
isSendAuthenticationCode: Boolean,
109109
enabled: Boolean = false,
110110
) {
111-
val backgroundColor = if (enabled) {
112-
JobisTheme.colors.onPrimary
111+
val (textColor, backgroundColor) = if (enabled) {
112+
JobisTheme.colors.primary to JobisTheme.colors.onPrimary
113113
} else {
114-
JobisTheme.colors.surfaceVariant
115-
}
116-
val textColor = if (enabled) {
117-
JobisTheme.colors.primary
118-
} else {
119-
JobisTheme.colors.onSurfaceVariant
114+
JobisTheme.colors.onSurfaceVariant to JobisTheme.colors.surfaceVariant
120115
}
121116

122117
Box(

0 commit comments

Comments
 (0)