improvement: Add a visual indicator to an active product container

This commit is contained in:
Artem Chepurnoy 2024-12-18 10:33:37 +02:00
parent 3fa71f0e28
commit 1d0e3cfa0a
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E

View File

@ -324,6 +324,21 @@ private fun SettingProductItem(
price = {
Text(product.price)
},
content = {
when (status) {
is Product.Status.Inactive -> {
// Do nothing
}
is Product.Status.Active -> {
FlatTextFieldBadge(
modifier = Modifier,
backgroundColor = MaterialTheme.colorScheme.primary,
text = stringResource(Res.string.pref_item_premium_status_active),
icon = Icons.Outlined.KeyguardPremium,
)
}
}
},
)
}