Skip to content

Commit

Permalink
Merge pull request #35 from 5AbhishekSaxena/GPD-34/add_numbers_tab
Browse files Browse the repository at this point in the history
Adding missing tab for numbers.
  • Loading branch information
5AbhishekSaxena authored Jan 27, 2024
2 parents 33c23a9 + 2c48eb8 commit da8356e
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,9 @@ fun WordsPagerWithTabs(
val coroutineScope = rememberCoroutineScope()

val pages by remember {
val wordTypes = arrayOf(
WordType.ALL_WORDS,
WordType.NOUNS,
WordType.VERBS,
WordType.COLORS,
WordType.QUESTIONS,
WordType.OPPOSITE,
)

mutableStateOf(wordTypes)
mutableStateOf(WordType.values())
}

LaunchedEffect(key1 = pagerState) {
snapshotFlow { pagerState.currentPage }.collect { page ->
onPageChange(pages[page])
Expand Down

0 comments on commit da8356e

Please sign in to comment.