better reader title, next, prev buttons

This commit is contained in:
Aria Moradi
2021-08-29 01:57:46 +04:30
parent cf71f16ea9
commit f5a88d98af
2 changed files with 7 additions and 9 deletions

View File

@@ -147,11 +147,12 @@ interface IProps {
settings: IReaderSettings
setSettings: React.Dispatch<React.SetStateAction<IReaderSettings>>
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) {
<CloseIcon />
</IconButton>
<Typography variant="h1">
{title}
{/* {title} */}
{chapter.name}
</Typography>
{!settings.staticNav
&& (
@@ -347,9 +349,7 @@ export default function ReaderNavBar(props: IProps) {
variant="outlined"
startIcon={<KeyboardArrowLeftIcon />}
>
Chapter
{' '}
{chapter.index - 1}
Prev. Chapter
</Button>
</Link>
)}
@@ -363,9 +363,7 @@ export default function ReaderNavBar(props: IProps) {
variant="outlined"
endIcon={<KeyboardArrowRightIcon />}
>
Chapter
{' '}
{chapter.index + 1}
Next Chapter
</Button>
</Link>
)}