Skip to content

Commit

Permalink
[chore/#928] AuthTextField text -> labelText
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Dec 30, 2024
1 parent d8b8ecf commit 8e79347
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ import org.sopt.official.designsystem.SoptTheme

@Composable
internal fun AuthTextField(
text: String,
labelText: String,
hintText: String,
onTextChange: (String) -> Unit,
modifier: Modifier = Modifier,
) {
var isFocused by remember { mutableStateOf(false) }

BasicTextField(
value = text,
value = labelText,
onValueChange = onTextChange,
modifier = modifier
.background(color = Black60, shape = RoundedCornerShape(10.dp))
Expand All @@ -62,7 +62,7 @@ internal fun AuthTextField(
.padding(vertical = 15.dp, horizontal = 20.dp),
textStyle = SoptTheme.typography.body14M.copy(color = Gray10),
decorationBox = { innerTextField ->
if (text.isEmpty()) {
if (labelText.isEmpty()) {
Text(
text = hintText,
color = Gray100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ internal fun PhoneCertification(
modifier = Modifier
.fillMaxWidth()
.weight(1f),
text = phoneNumber,
labelText = phoneNumber,
hintText = "010-XXXX-XXXX",
onTextChange = {}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fun CertificateMemberScreen() {
Spacer(modifier = Modifier.height(10.dp))
AuthTextField(
modifier = Modifier.fillMaxWidth(),
text = "",
labelText = "",
hintText = "인증번호를 입력해 주세요.",
onTextChange = {}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fun CertificateAccountScreen() {
Spacer(modifier = Modifier.height(12.dp))
AuthTextField(
modifier = Modifier.fillMaxWidth(),
text = "",
labelText = "",
hintText = "인증번호를 입력해 주세요.",
onTextChange = {}
)
Expand Down

0 comments on commit 8e79347

Please sign in to comment.