From c36f3d6f991a803bc0a22eee1fc4467ca85f9a90 Mon Sep 17 00:00:00 2001 From: BEEEAM-J Date: Tue, 5 Dec 2023 20:40:51 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20Color=20Chip=20Image=20painterResou?= =?UTF-8?q?rce=20id=20=EC=84=A4=EC=A0=95=20=EA=B0=84=EC=86=8C=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/designsystem/component/chips/SuwikiColorChip.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/designsystem/src/main/java/com/suwiki/core/designsystem/component/chips/SuwikiColorChip.kt b/core/designsystem/src/main/java/com/suwiki/core/designsystem/component/chips/SuwikiColorChip.kt index a23a3cff0..5f6d9f7c4 100644 --- a/core/designsystem/src/main/java/com/suwiki/core/designsystem/component/chips/SuwikiColorChip.kt +++ b/core/designsystem/src/main/java/com/suwiki/core/designsystem/component/chips/SuwikiColorChip.kt @@ -24,11 +24,7 @@ fun SuwikiColorChip( modifier = Modifier.size(40.dp), ) { Image( - painter = if (isChecked) { - painterResource(id = R.drawable.ic_color_checked_chip) - } else { - painterResource(id = R.drawable.ic_color_chip) - }, + painter = painterResource(id = if (isChecked) R.drawable.ic_color_checked_chip else R.drawable.ic_color_chip), contentDescription = "", modifier = Modifier.clickable(onClick = onClick), )