Add preview without subtitle
This commit is contained in:
parent
f2317e9aa5
commit
8e1b48d3d5
1 changed files with 8 additions and 0 deletions
|
|
@ -94,5 +94,13 @@ internal fun PreferenceSwitchPreview() = ElementThemedPreview {
|
||||||
isChecked = true,
|
isChecked = true,
|
||||||
onCheckedChange = {},
|
onCheckedChange = {},
|
||||||
)
|
)
|
||||||
|
PreferenceSwitch(
|
||||||
|
title = "Switch no subtitle",
|
||||||
|
subtitle = null,
|
||||||
|
icon = CompoundIcons.Threads(),
|
||||||
|
enabled = false,
|
||||||
|
isChecked = true,
|
||||||
|
onCheckedChange = {},
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue