Added sort by last read (#254)

This commit is contained in:
akabhirav
2023-03-05 12:26:50 +05:30
committed by GitHub
parent e32078917d
commit 91e7bd2b27
5 changed files with 10 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ export default function Reader() {
thumbnailUrl: '',
genre: [],
inLibraryAt: 0,
lastReadAt: 0,
});
const [chapter, setChapter] = useState<IChapter | IPartialChapter>(initialChapter());
const [curPage, setCurPage] = useState<number>(0);

View File

@@ -205,6 +205,7 @@ export default function SourceMangas(props: { popular: boolean }) {
inLibrary: it.inLibrary,
genre: it.genre,
inLibraryAt: it.inLibraryAt,
lastReadAt: it.lastReadAt,
})),
]);
setHasNextPage(data.hasNextPage);