Skip to content

Commit

Permalink
[Refactor] @jasunglee @ze-zeh 리뷰반영
Browse files Browse the repository at this point in the history
  • Loading branch information
evergreentree97 committed Sep 26, 2024
1 parent 62d76e2 commit 108bf74
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package team.ppac.designsystem.component.textfield

import androidx.compose.foundation.background
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
Expand Down Expand Up @@ -32,11 +33,12 @@ fun FarmemeTextField(
modifier: Modifier = Modifier,
text: String,
placeholder: String = "",
trailingContent: @Composable () -> Unit = {},
onTextChanged: (String) -> Unit,
enabled: Boolean = true,
keyboardOptions: KeyboardOptions = KeyboardOptions.Default,
keyboardActions: KeyboardActions = KeyboardActions.Default,
onTextChanged: (String) -> Unit,
trailingContent: @Composable () -> Unit = {},
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
) {
BasicTextField(
modifier = modifier,
Expand All @@ -46,6 +48,7 @@ fun FarmemeTextField(
keyboardOptions = keyboardOptions,
keyboardActions = keyboardActions,
singleLine = true,
interactionSource = interactionSource,
decorationBox = { innerTextField ->
Box(
modifier = Modifier
Expand Down Expand Up @@ -85,13 +88,14 @@ fun FarmemeTextArea(
modifier: Modifier = Modifier,
text: String,
placeholder: String = "",
trailingContent: @Composable () -> Unit = {},
onTextChanged: (String) -> Unit = {},
enabled: Boolean = true,
keyboardOptions: KeyboardOptions = KeyboardOptions.Default,
keyboardActions: KeyboardActions = KeyboardActions.Default,
singleLine: Boolean = false,
maxLines: Int = Int.MAX_VALUE,
onTextChanged: (String) -> Unit = {},
trailingContent: @Composable () -> Unit = {},
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
) {
BasicTextField(
modifier = modifier,
Expand All @@ -102,6 +106,7 @@ fun FarmemeTextArea(
keyboardActions = keyboardActions,
singleLine = singleLine,
maxLines = maxLines,
interactionSource = interactionSource,
decorationBox = { innerTextField ->
Box(
modifier = Modifier
Expand Down

0 comments on commit 108bf74

Please sign in to comment.