Skip to content

Instantly share code, notes, and snippets.

@mitchtabian
Created May 12, 2021 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitchtabian/a116f5929248043470965655c8046c11 to your computer and use it in GitHub Desktop.
Save mitchtabian/a116f5929248043470965655c8046c11 to your computer and use it in GitHub Desktop.
@Composable
fun RecipeListScreen(
state: RecipeListState,
onTriggerEvent: (Event) -> Unit,
onClickRecipeListItem: (Int) -> Unit,
){
AppTheme {
RecipeList(
loading = state.isLoading,
recipes = state.recipes,
page = state.page,
onTriggerNextPage = {
onTriggerEvent(RecipeListEvents.NextPage)
},
onClickRecipeListItem = onClickRecipeListItem
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment