Skip to content

Commit

Permalink
[#624] Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
florentmaitre committed Sep 20, 2023
1 parent 7ac62ff commit 19e2188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ fun ComponentModalDrawers() {
classInstance<OdsModalDrawerHeader>("drawerHeader") {
title(title)
image()
stringRepresentation("imageDisplayType", imageDisplayType)
enum("imageDisplayType", imageDisplayType)
subtitle?.let { subtitle(it) }
}
list("drawerContentList") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class ParametersBuilder {
fun lambda(name: String) = add(LambdaParameter(name))
fun float(name: String, value: Float) = add(FloatParameter(name, value))
fun mutableState(name: String, stateValue: String) = add(MutableStateParameter(name, stateValue))
fun <T : Enum<T>> enum(name: String, value: T) = add(EnumParameter<T>(name, value))
fun <T : Enum<T>> enum(name: String, value: T) = add(EnumParameter(name, value))
fun composable(name: String, value: @Composable () -> Unit) = add(ComposableParameter(name, value))
inline fun <reified T> classInstance(name: String, noinline parameters: ParametersBuilder.() -> Unit) =
classInstance(name, T::class.java, parameters)
Expand Down

0 comments on commit 19e2188

Please sign in to comment.