diff --git a/app/src/main/java/com/orange/ods/app/ui/components/navigationdrawers/ComponentModalDrawers.kt b/app/src/main/java/com/orange/ods/app/ui/components/navigationdrawers/ComponentModalDrawers.kt index 5f49c25b0..d98d81153 100644 --- a/app/src/main/java/com/orange/ods/app/ui/components/navigationdrawers/ComponentModalDrawers.kt +++ b/app/src/main/java/com/orange/ods/app/ui/components/navigationdrawers/ComponentModalDrawers.kt @@ -185,7 +185,7 @@ fun ComponentModalDrawers() { classInstance("drawerHeader") { title(title) image() - stringRepresentation("imageDisplayType", imageDisplayType) + enum("imageDisplayType", imageDisplayType) subtitle?.let { subtitle(it) } } list("drawerContentList") { diff --git a/app/src/main/java/com/orange/ods/app/ui/utilities/composable/CodeImplementation.kt b/app/src/main/java/com/orange/ods/app/ui/utilities/composable/CodeImplementation.kt index 13eb35007..6b8b856f6 100644 --- a/app/src/main/java/com/orange/ods/app/ui/utilities/composable/CodeImplementation.kt +++ b/app/src/main/java/com/orange/ods/app/ui/utilities/composable/CodeImplementation.kt @@ -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 > enum(name: String, value: T) = add(EnumParameter(name, value)) + fun > enum(name: String, value: T) = add(EnumParameter(name, value)) fun composable(name: String, value: @Composable () -> Unit) = add(ComposableParameter(name, value)) inline fun classInstance(name: String, noinline parameters: ParametersBuilder.() -> Unit) = classInstance(name, T::class.java, parameters)