Show "ContinueReadButton" on in library

This commit is contained in:
schroda
2024-05-08 18:59:01 +02:00
parent 4d3889532e
commit 23ea896524
3 changed files with 10 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ const getMangaLinkTo = (
switch (mode) {
case 'default':
case 'source':
case 'duplicate':
return `/manga/${mangaId}/`;
case 'migrate.search':
return `/migrate/source/${sourceId}/manga/${mangaId}/search?query=${mangaTitle}`;
@@ -106,7 +107,7 @@ export const MangaCard = (props: MangaCardProps) => {
const continueReadingButton = useMemo(
() => (
<ContinueReadingButton
showContinueReadingButton={showContinueReadingButton}
showContinueReadingButton={showContinueReadingButton && mode === 'default'}
isLatestChapterRead={isLatestChapterRead}
nextChapterIndexToRead={nextChapterIndexToRead}
mangaLinkTo={mangaLinkTo}