diff --git a/core/designsystem/src/main/kotlin/io/getstream/server/driven/core/designsystem/consumer/ConsumeHandler.kt b/core/designsystem/src/main/kotlin/io/getstream/server/driven/core/designsystem/consumer/ConsumeHandler.kt index 1241724..46bfa26 100644 --- a/core/designsystem/src/main/kotlin/io/getstream/server/driven/core/designsystem/consumer/ConsumeHandler.kt +++ b/core/designsystem/src/main/kotlin/io/getstream/server/driven/core/designsystem/consumer/ConsumeHandler.kt @@ -20,8 +20,8 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import io.getstream.server.driven.core.model.Handler import io.getstream.server.driven.core.model.HandlerAction -import io.getstream.server.driven.core.model.HandlerNavigation import io.getstream.server.driven.core.model.HandlerType +import io.getstream.server.driven.core.model.NavigationHandler @Composable fun Modifier.consumeHandler( @@ -33,7 +33,7 @@ fun Modifier.consumeHandler( handler.actions.forEach { element -> val action = if (element.key == HandlerAction.NAVIGATION.value && - element.value == HandlerNavigation.TO.value + element.value == NavigationHandler.TO.value ) { { navigator } } else { diff --git a/core/model/src/main/kotlin/io/getstream/server/driven/core/model/Handler.kt b/core/model/src/main/kotlin/io/getstream/server/driven/core/model/Handler.kt index 17fe5a4..331b417 100644 --- a/core/model/src/main/kotlin/io/getstream/server/driven/core/model/Handler.kt +++ b/core/model/src/main/kotlin/io/getstream/server/driven/core/model/Handler.kt @@ -33,6 +33,6 @@ enum class HandlerAction(val value: String) { NAVIGATION("navigation") } -enum class HandlerNavigation(val value: String) { +enum class NavigationHandler(val value: String) { TO("to") }