Skip to content

Commit

Permalink
Merge pull request #67 from DennisTsar/patch-1
Browse files Browse the repository at this point in the history
Fix navigation code samples
  • Loading branch information
cjbrooks12 committed Mar 15, 2024
2 parents 37ff255 + d6c69b1 commit a61e96b
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
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 a61e96b

Please sign in to comment.