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

@@ -124,7 +124,7 @@ export const ChapterCard = memo((props: IProps) => {
style={{
color: theme.palette.text[chapter.isRead ? 'disabled' : 'primary'],
}}
state={{ resumeMode: Chapters.getReaderResumeMode(chapter) }}
state={Chapters.getReaderOpenChapterLocationState(chapter)}
replace={mode === 'reader'}
onClick={(e) => handleClick(e)}
{...longPressBind(popupState.open)}