Skip to content

Commit

Permalink
[#624] Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
florentmaitre authored and paulinea committed Sep 21, 2023
1 parent e30c1a3 commit 2ef4256
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 @@ -285,7 +285,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 2ef4256

Please sign in to comment.