Skip to content

Commit

Permalink
[FEAT] 검색 키보드 아이콘 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
arinming committed Jul 18, 2024
1 parent 4f38a2b commit ab4ab08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.terning.core.designsystem.component.textfield
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.text.input.ImeAction
import com.terning.core.designsystem.theme.Grey300
import com.terning.core.designsystem.theme.Grey400
import com.terning.core.designsystem.theme.TerningMain
Expand Down Expand Up @@ -33,11 +32,6 @@ fun SearchTextField(
hintColor = Grey300,
leftIcon = leftIcon,
leftIconColor = TerningMain,
imeAction = if (text.isNotBlank()) {
ImeAction.Search
} else {
ImeAction.Done
},
enabled = enabled,
readOnly = readOnly,
onDoneAction = onDoneAction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fun TerningBasicTextField(
strokeWidth: Float = 1f,
leftIcon: Int? = null,
leftIconColor: Color = TerningMain,
imeAction: ImeAction? = ImeAction.Done,
imeAction: ImeAction = ImeAction.Done,
maxTextLength: Int? = null,
showTextLength: Boolean = false,
hint: String = "",
Expand All @@ -66,9 +66,7 @@ fun TerningBasicTextField(
onValueChange = onValueChange,
singleLine = true,
maxLines = 1,
keyboardOptions = KeyboardOptions(
imeAction = imeAction ?: ImeAction.Done
),
keyboardOptions = KeyboardOptions(imeAction = imeAction),
keyboardActions = KeyboardActions(
onDone = {
if (value.isNotBlank()) {
Expand Down

0 comments on commit ab4ab08

Please sign in to comment.