Skip to content

Commit

Permalink
refactor: Color Chip Image painterResource id 설정 간소화
Browse files Browse the repository at this point in the history
  • Loading branch information
BEEEAM-J committed Dec 5, 2023
1 parent eafbe22 commit c36f3d6
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down

0 comments on commit c36f3d6

Please sign in to comment.