From b16b9eb55aebc5c4c4b0bfe4bae70e395052964f Mon Sep 17 00:00:00 2001 From: Daniel <50052685+schroda@users.noreply.github.com> Date: Sun, 12 Feb 2023 16:11:29 +0100 Subject: [PATCH] Fix lint error (#235) --- src/components/navbar/ReaderNavBar.tsx | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/src/components/navbar/ReaderNavBar.tsx b/src/components/navbar/ReaderNavBar.tsx index 4dcf9408..d7b19266 100644 --- a/src/components/navbar/ReaderNavBar.tsx +++ b/src/components/navbar/ReaderNavBar.tsx @@ -258,11 +258,7 @@ export default function ReaderNavBar(props: IProps) { Currently on page - + = 1 ? chapter.index : ''} @@ -324,19 +316,16 @@ export default function ReaderNavBar(props: IProps) { .map((ignoreValue, index) => ( // eslint-disable-next-line max-len // eslint-disable-next-line react/no-array-index-key - {`Chapter ${index + 1}`} + {`Chapter ${ + index + 1 + }`} ))} = chapter.chapterCount - } + disabled={chapter.index < 1 || chapter.index >= chapter.chapterCount} onClick={() => { history.replace({ pathname: `/manga/${manga.id}/chapter/${chapter.index + 1}`,