From 363c9ede63275b3104a0971bf5a66f12d8160cf3 Mon Sep 17 00:00:00 2001 From: boiledegg Date: Fri, 12 Jul 2024 16:15:22 +0900 Subject: [PATCH] =?UTF-8?q?[MOD/#57]=20=EC=BB=AC=EB=9F=AC=20=ED=8C=94?= =?UTF-8?q?=EB=A0=88=ED=8A=B8=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designsystem/component/item/ColorPalette.kt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/item/ColorPalette.kt b/core/src/main/java/com/terning/core/designsystem/component/item/ColorPalette.kt index 2fb3f6805..420ff2656 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/item/ColorPalette.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/item/ColorPalette.kt @@ -44,11 +44,6 @@ fun ColorPalette( CalPink ) - val colorButton: @Composable (Color, Boolean, (Color) -> Unit) -> Unit = { - color: Color, isSelected: Boolean, onOptionSelected:(Color)-> Unit -> - ColorButton(color = color, isSelected = isSelected, onColorSelected = onOptionSelected) - } - RadioButtonGroups( modifier = modifier.size(251.dp, 84.dp), options = colorList, @@ -56,7 +51,13 @@ fun ColorPalette( onOptionSelected = { color -> Log.d("CalendarScreen","color: ${colorList.indexOf(color)}") }, - buttonComposable = colorButton, + buttonComposable = { + color, isSelected, onOptionSelected -> + ColorButton( + color = color, + isSelected = isSelected, + onColorSelected = onOptionSelected) + }, verticalArrangementSpace = 6.dp, horizontalArrangementSpace = 14.dp, )