diff --git a/src/components/navbar/ReaderNavBar.tsx b/src/components/navbar/ReaderNavBar.tsx index 4d2f84ef..eeeafcef 100644 --- a/src/components/navbar/ReaderNavBar.tsx +++ b/src/components/navbar/ReaderNavBar.tsx @@ -147,11 +147,12 @@ interface IProps { settings: IReaderSettings setSettings: React.Dispatch> manga: IManga | IMangaCard - chapter: IChapter | IPartialChpter + chapter: IChapter curPage: number } export default function ReaderNavBar(props: IProps) { + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { title } = useContext(NavBarContext); const history = useHistory(); @@ -216,7 +217,8 @@ export default function ReaderNavBar(props: IProps) { - {title} + {/* {title} */} + {chapter.name} {!settings.staticNav && ( @@ -347,9 +349,7 @@ export default function ReaderNavBar(props: IProps) { variant="outlined" startIcon={} > - Chapter - {' '} - {chapter.index - 1} + Prev. Chapter )} @@ -363,9 +363,7 @@ export default function ReaderNavBar(props: IProps) { variant="outlined" endIcon={} > - Chapter - {' '} - {chapter.index + 1} + Next Chapter )} diff --git a/src/screens/manga/Reader.tsx b/src/screens/manga/Reader.tsx index 05cf1119..e859e587 100644 --- a/src/screens/manga/Reader.tsx +++ b/src/screens/manga/Reader.tsx @@ -95,7 +95,7 @@ export default function Reader() { settings={settings} setSettings={setSettings} manga={manga} - chapter={chapter} + chapter={chapter as IChapter} curPage={curPage} /> ),