Skip to content

Commit

Permalink
Remove sample convenience code from the README (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
eygraber authored Dec 16, 2024
1 parent 1ccab90 commit fd480e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,16 @@ class HomeDestination(
onNavigateToCreateItem: () -> Unit,
onNavigateToUpdateItem: (String) -> Unit,
onNavigateToSettings: () -> Unit,
) : SampleDestination<HomeIntent, HomeCompositor, HomeViewState>() {
) : ViceDestination<HomeIntent, HomeCompositor, ViceEffects, HomeViewState>() {
override val view: HomeView = { state, onIntent -> HomeView(state, onIntent) }

override val compositor = HomeCompositor(
onNavigateToCreateItem,
onNavigateToUpdateItem,
onNavigateToSettings,
)

override val effects = ViceEffects.None
}

```
Expand Down

0 comments on commit fd480e3

Please sign in to comment.