Created
January 31, 2020 10:18
-
-
Save fluxtah/d3e3ebbb5d54c43ccf5bcd1b41352345 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val onCardSaved = { | |
| runBlocking { | |
| repository.saveCard(state.card) | |
| goto(Destination.HomeScreen) | |
| } | |
| } | |
| MemsetMainTemplate { | |
| when (state.loadingState) { | |
| LoadingState.Loaded -> CardEditorContent(state, onCardSaved) | |
| LoadingState.Loading -> CardEditorLoading() | |
| LoadingState.Error -> CardEditorLoadingError() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment