Add preview without subtitle

This commit is contained in:
Benoit Marty 2024-05-27 17:27:20 +02:00
parent 8eeb95e867
commit cf057310b4

View file

@ -94,5 +94,13 @@ internal fun PreferenceSwitchPreview() = ElementThemedPreview {
isChecked = true,
onCheckedChange = {},
)
PreferenceSwitch(
title = "Switch no subtitle",
subtitle = null,
icon = CompoundIcons.Threads(),
enabled = false,
isChecked = true,
onCheckedChange = {},
)
}
}