-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display all search items and query search
- Loading branch information
Showing
12 changed files
with
320 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
7 changes: 7 additions & 0 deletions
7
...rc/commonMain/kotlin/dev/datlag/burningseries/ui/screen/initial/search/SearchComponent.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
package dev.datlag.burningseries.ui.screen.initial.search | ||
|
||
import dev.datlag.burningseries.model.Genre | ||
import dev.datlag.burningseries.model.state.SearchState | ||
import dev.datlag.burningseries.ui.navigation.Component | ||
import kotlinx.coroutines.flow.StateFlow | ||
|
||
interface SearchComponent : Component { | ||
|
||
val searchState: StateFlow<SearchState> | ||
val genres: StateFlow<List<Genre>> | ||
val canLoadMoreGenres: StateFlow<Boolean> | ||
|
||
val searchItems: StateFlow<List<Genre.Item>> | ||
|
||
fun retryLoadingSearch(): Any? | ||
fun loadMoreGenres(): Any? | ||
fun searchQuery(text: String) | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.