[ServerMapping][Codegen] Update to latest server gql MangaType changes (#546)

This commit is contained in:
schroda
2024-01-11 03:53:06 +01:00
committed by GitHub
parent 955cc682fd
commit 3973eda089
9 changed files with 405 additions and 28 deletions

View File

@@ -78,8 +78,8 @@ export const ChapterList: React.FC<IProps> = ({ manga, isRefreshing }) => {
const visibleChapters = useMemo(() => filterAndSortChapters(chapters, options), [chapters, options]);
const nextChapterIndexToRead = (manga.lastReadChapter?.sourceOrder ?? 0) + 1;
const isLatestChapterRead = manga.chapters.totalCount === manga.lastReadChapter?.sourceOrder;
const nextChapterIndexToRead = (manga.latestReadChapter?.sourceOrder ?? 0) + 1;
const isLatestChapterRead = manga.chapters.totalCount === manga.latestReadChapter?.sourceOrder;
const areAllChaptersRead = manga.unreadCount === 0;
const areAllChaptersDownloaded = manga.downloadCount === manga.chapters.totalCount;