Skip to content

Commit

Permalink
Fix navigation code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisTsar authored and cjbrooks12 committed May 17, 2024
1 parent 5c2084b commit d56b61d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/orchid/resources/wiki/modules/ballast-navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ enum class AppScreen(
) : Route {
Home("/app/home"),
PostList("/app/posts?sort={?}"),
PostDetails("/app/posts/{postId}", annotations = listOf(Floating())), // request this route to be displayed in a floating window
PostDetails("/app/posts/{postId}", annotations = setOf(Floating)), // request this route to be displayed in a floating window
;

override val matcher: RouteMatcher = RouteMatcher.create(routeFormat)
Expand All @@ -480,7 +480,7 @@ You can also provide Route Annotations directly to the navigation request:
router.trySend(
RouterContract.Inputs.GoToDestination(
destination = "/app/posts/12345",
extraAnnotations = setOf(Floating()), // normally this destination is displayed fullscreen, but this time only display it in a floating window
extraAnnotations = setOf(Floating), // normally this destination is displayed fullscreen, but this time only display it in a floating window
)
)
```
Expand Down

0 comments on commit d56b61d

Please sign in to comment.