mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-26 19:17:51 +02:00
Bump dependencies
This commit is contained in:
@ -11,6 +11,7 @@ import androidx.compose.runtime.getValue
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.paging.LoadState
|
||||
import androidx.paging.compose.LazyPagingItems
|
||||
import androidx.paging.compose.itemKey
|
||||
import eu.kanade.presentation.library.components.CommonMangaItemDefaults
|
||||
import eu.kanade.presentation.library.components.MangaComfortableGridItem
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
@ -38,7 +39,10 @@ fun BrowseSourceComfortableGrid(
|
||||
}
|
||||
}
|
||||
|
||||
items(mangaList.itemCount) { index ->
|
||||
items(
|
||||
count = mangaList.itemCount,
|
||||
key = mangaList.itemKey { it.value.id },
|
||||
) { index ->
|
||||
val manga by mangaList[index]?.collectAsState() ?: return@items
|
||||
BrowseSourceComfortableGridItem(
|
||||
manga = manga,
|
||||
|
@ -11,6 +11,7 @@ import androidx.compose.runtime.getValue
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.paging.LoadState
|
||||
import androidx.paging.compose.LazyPagingItems
|
||||
import androidx.paging.compose.itemKey
|
||||
import eu.kanade.presentation.library.components.CommonMangaItemDefaults
|
||||
import eu.kanade.presentation.library.components.MangaCompactGridItem
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
@ -38,7 +39,10 @@ fun BrowseSourceCompactGrid(
|
||||
}
|
||||
}
|
||||
|
||||
items(mangaList.itemCount) { index ->
|
||||
items(
|
||||
count = mangaList.itemCount,
|
||||
key = mangaList.itemKey { it.value.id },
|
||||
) { index ->
|
||||
val manga by mangaList[index]?.collectAsState() ?: return@items
|
||||
BrowseSourceCompactGridItem(
|
||||
manga = manga,
|
||||
|
@ -7,7 +7,7 @@ import androidx.compose.runtime.getValue
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.paging.LoadState
|
||||
import androidx.paging.compose.LazyPagingItems
|
||||
import androidx.paging.compose.items
|
||||
import androidx.paging.compose.itemKey
|
||||
import eu.kanade.presentation.library.components.CommonMangaItemDefaults
|
||||
import eu.kanade.presentation.library.components.MangaListItem
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
@ -32,9 +32,11 @@ fun BrowseSourceList(
|
||||
}
|
||||
}
|
||||
|
||||
items(mangaList) { mangaflow ->
|
||||
mangaflow ?: return@items
|
||||
val manga by mangaflow.collectAsState()
|
||||
items(
|
||||
count = mangaList.itemCount,
|
||||
key = mangaList.itemKey { it.value.id },
|
||||
) { index ->
|
||||
val manga by mangaList[index]?.collectAsState() ?: return@items
|
||||
BrowseSourceListItem(
|
||||
manga = manga,
|
||||
onClick = { onMangaClick(manga) },
|
||||
|
Reference in New Issue
Block a user