No Composable if subtitle is null
This commit is contained in:
@@ -59,8 +59,8 @@ fun PreferenceSwitch(
|
||||
text = title,
|
||||
)
|
||||
},
|
||||
supportingContent = {
|
||||
if (subtitle != null) {
|
||||
supportingContent = subtitle?.let {
|
||||
{
|
||||
Text(
|
||||
style = ElementTheme.typography.fontBodyMdRegular,
|
||||
text = subtitle,
|
||||
|
||||
Reference in New Issue
Block a user