Introduce "getReaderOpenChapterLocationState" function

This commit is contained in:
schroda
2025-02-01 19:48:24 +01:00
parent a6f015d5e3
commit a80e8885fb
4 changed files with 9 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ export const ContinueReadingButton = ({
sx={{ minWidth: 'unset', py: 0.5, px: 0.75 }}
component={Link}
to={`${mangaLinkTo}/chapter/${chapter.sourceOrder}`}
state={{ resumeMode: Chapters.getReaderResumeMode(chapter) }}
state={Chapters.getReaderOpenChapterLocationState(chapter)}
onClick={(e) => e.stopPropagation()}
onMouseDown={(e) => e.stopPropagation()}
>