exposed error

This commit is contained in:
Aria Moradi
2021-05-14 17:31:07 +04:30
parent bce8d58845
commit da6a953099
10 changed files with 109 additions and 23 deletions

View File

@@ -305,11 +305,11 @@ export default function ReaderNavBar(props: IProps) {
{chapter.pageCount}
</span>
<div className={classes.navigationChapters}>
{chapter.chapterIndex > 1
{chapter.index > 1
&& (
<Link
style={{ gridArea: 'prev' }}
to={`/manga/${manga.id}/chapter/${chapter.chapterIndex - 1}`}
to={`/manga/${manga.id}/chapter/${chapter.index - 1}`}
>
<Button
variant="outlined"
@@ -317,15 +317,15 @@ export default function ReaderNavBar(props: IProps) {
>
Chapter
{' '}
{chapter.chapterIndex - 1}
{chapter.index - 1}
</Button>
</Link>
)}
{chapter.chapterIndex < chapter.chapterCount
{chapter.index < chapter.chapterCount
&& (
<Link
style={{ gridArea: 'next' }}
to={`/manga/${manga.id}/chapter/${chapter.chapterIndex + 1}`}
to={`/manga/${manga.id}/chapter/${chapter.index + 1}`}
>
<Button
variant="outlined"
@@ -333,7 +333,7 @@ export default function ReaderNavBar(props: IProps) {
>
Chapter
{' '}
{chapter.chapterIndex + 1}
{chapter.index + 1}
</Button>
</Link>
)}