Skip to content

Commit

Permalink
Rename to NavigationHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Sep 5, 2024
1 parent 13e4701 commit fa92fcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit fa92fcb

Please sign in to comment.