From bdc11b7fcab3da73f9a77ce91c61b8941dad0e7d Mon Sep 17 00:00:00 2001 From: syb8200 Date: Mon, 15 Jan 2024 00:03:02 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20SusuPriceTextField=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EB=B0=8F=20ripple=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../feature/envelopeedit/SentEnvelopeEditScreen.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/feature/sent/src/main/java/com/susu/feature/envelopeedit/SentEnvelopeEditScreen.kt b/feature/sent/src/main/java/com/susu/feature/envelopeedit/SentEnvelopeEditScreen.kt index 026087e1..7c6e24a9 100644 --- a/feature/sent/src/main/java/com/susu/feature/envelopeedit/SentEnvelopeEditScreen.kt +++ b/feature/sent/src/main/java/com/susu/feature/envelopeedit/SentEnvelopeEditScreen.kt @@ -1,7 +1,6 @@ package com.susu.feature.envelopeedit import androidx.compose.foundation.background -import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer @@ -37,12 +36,14 @@ import com.susu.core.designsystem.component.button.MediumButtonStyle import com.susu.core.designsystem.component.button.SmallButtonStyle import com.susu.core.designsystem.component.button.SusuFilledButton import com.susu.core.designsystem.component.textfield.SusuBasicTextField +import com.susu.core.designsystem.component.textfield.SusuPriceTextField import com.susu.core.designsystem.theme.Gray100 import com.susu.core.designsystem.theme.Gray30 import com.susu.core.designsystem.theme.Gray40 import com.susu.core.designsystem.theme.Gray70 import com.susu.core.designsystem.theme.SusuTheme import com.susu.core.ui.extension.collectWithLifecycle +import com.susu.core.ui.extension.susuClickable import com.susu.feature.envelopeedit.component.EditDetailItem import com.susu.feature.sent.R @@ -102,8 +103,8 @@ fun SentEnvelopeEditScreen( top = SusuTheme.spacing.spacing_xl, ), ) { - SusuBasicTextField( - text = "${money}원", + SusuPriceTextField( + text = money.toString(), onTextChange = { money = it.toInt() }, textStyle = SusuTheme.typography.title_xxl, modifier = modifier.fillMaxWidth(), @@ -204,7 +205,10 @@ fun SentEnvelopeEditScreen( color = Gray100, modifier = modifier .fillMaxWidth() - .clickable { isSheetOpen = true }, + .susuClickable( + rippleEnabled = false, + onClick = { isSheetOpen = true }, + ), ) } EditDetailItem(