Skip to content

Commit

Permalink
ANDROID-15206 Set icon as null when there is no icon (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeslat authored Sep 23, 2024
1 parent f7e570a commit 44d6ab7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fun ListRowItem(
) {
ListRowItemImp(
modifier = modifier,
icon = { listRowIcon?.Draw() },
icon = listRowIcon?.let { { listRowIcon.Draw() } },
title = title,
isTitleHeading = isTitleHeading,
subtitle = subtitle,
Expand Down Expand Up @@ -288,6 +288,10 @@ fun ListRowItemPreview() {
MisticaTheme(brand = MovistarBrand) {
val checkedState = remember { mutableStateOf(true) }
Column {
ListRowItem(
listRowIcon = null,
title = "Title",
)
ListRowItem(
listRowIcon = null,
headline = Tag("Promo"),
Expand Down

0 comments on commit 44d6ab7

Please sign in to comment.