From a8c7e3a7ff2c0a6f1d2d85894d692eb74a4c4f41 Mon Sep 17 00:00:00 2001 From: MinJae Han Date: Fri, 17 Jan 2025 05:09:59 +0900 Subject: [PATCH 1/4] =?UTF-8?q?[FEAT/#55]=20=EB=8B=A4=EC=9D=8C=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../register/componet/NextButton.kt | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt diff --git a/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt b/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt new file mode 100644 index 0000000..d052237 --- /dev/null +++ b/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt @@ -0,0 +1,52 @@ +package com.spoony.spoony.presentation.register.componet + +import androidx.compose.foundation.background +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.runtime.Composable +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.setValue +import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.tooling.preview.Preview +import androidx.compose.ui.unit.dp +import com.spoony.spoony.core.designsystem.component.button.SpoonyButton +import com.spoony.spoony.core.designsystem.theme.SpoonyAndroidTheme +import com.spoony.spoony.core.designsystem.type.ButtonSize +import com.spoony.spoony.core.designsystem.type.ButtonStyle + +@Composable +fun NextButton( + enabled: Boolean, + onClick: () -> Unit +) { + SpoonyButton( + text = "다음", + size = ButtonSize.Xlarge, + style = ButtonStyle.Primary, + modifier = Modifier.fillMaxWidth(), + enabled = enabled, + onClick = onClick + ) +} + +@Preview +@Composable +private fun NextButtonPreview() { + var enabled by remember { mutableStateOf(true) } + + Column( + modifier = Modifier + .fillMaxSize() + .background(Color.White) + .padding(16.dp) + ) { + SpoonyAndroidTheme { + NextButton(enabled = enabled, onClick = { enabled = !enabled }) + } + } +} From 0aa712513d9bee95fcc49c6ed854a2273237c33f Mon Sep 17 00:00:00 2001 From: MinJae Han Date: Fri, 17 Jan 2025 05:24:30 +0900 Subject: [PATCH 2/4] =?UTF-8?q?[FEAT/#55]=20=EB=8B=A4=EC=9D=8C=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=EC=88=98=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spoony/spoony/presentation/register/componet/NextButton.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt b/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt index d052237..69e06eb 100644 --- a/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt +++ b/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt @@ -41,7 +41,6 @@ private fun NextButtonPreview() { Column( modifier = Modifier - .fillMaxSize() .background(Color.White) .padding(16.dp) ) { From 87ff097ed868549c7d1426406f228f1a0f9509bb Mon Sep 17 00:00:00 2001 From: MinJae Han Date: Fri, 17 Jan 2025 05:30:25 +0900 Subject: [PATCH 3/4] =?UTF-8?q?[FEAT/#55]=20=EB=8B=A4=EC=9D=8C=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spoony/spoony/presentation/register/componet/NextButton.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt b/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt index 69e06eb..ffbc63f 100644 --- a/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt +++ b/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt @@ -38,7 +38,6 @@ fun NextButton( @Composable private fun NextButtonPreview() { var enabled by remember { mutableStateOf(true) } - Column( modifier = Modifier .background(Color.White) From 9613ef1d87c56c6a806c75b82087f824b39c7479 Mon Sep 17 00:00:00 2001 From: MinJae Han Date: Fri, 17 Jan 2025 05:33:56 +0900 Subject: [PATCH 4/4] =?UTF-8?q?[MOD/#55]=20=EB=A6=B0=ED=8A=B8=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spoony/spoony/presentation/register/componet/NextButton.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt b/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt index ffbc63f..da8d97d 100644 --- a/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt +++ b/app/src/main/java/com/spoony/spoony/presentation/register/componet/NextButton.kt @@ -2,7 +2,6 @@ package com.spoony.spoony.presentation.register.componet import androidx.compose.foundation.background import androidx.compose.foundation.layout.Column -import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.runtime.Composable