add EmptyView to DownloadQueue, refactro strings (#53)

* Added the Emty view message in the /download path

* Changed a few expression to template string
This commit is contained in:
abhijeetChawla
2021-10-29 17:51:10 +05:30
committed by GitHub
parent e9236f3a61
commit c91cc508f4
4 changed files with 11 additions and 21 deletions

View File

@@ -149,10 +149,7 @@ export default function ChapterCard(props: IProps) {
{!chapter.bookmarked && 'Bookmark'}
</MenuItem>
<MenuItem onClick={() => sendChange('read', !chapter.read)}>
Mark as
{' '}
{chapter.read && 'unread'}
{!chapter.read && 'read'}
{`Mark as ${chapter.read && 'unread'} ${!chapter.read && 'read'}`}
</MenuItem>
<MenuItem onClick={() => sendChange('markPrevRead', true)}>
Mark previous as Read

View File

@@ -205,24 +205,18 @@ export default function MangaDetails(props: IProps) {
{manga.title}
</h1>
<h3>
Author:
{' '}
{'Author: '}
<span>{getValueOrUnknown(manga.author)}</span>
</h3>
<h3>
Artist:
{' '}
{'Artist: '}
<span>{getValueOrUnknown(manga.artist)}</span>
</h3>
<h3>
Status:
{' '}
{manga.status}
{`Status: ${manga.status}`}
</h3>
<h3>
Source:
{' '}
{getSourceName(manga.source)}
{`Source: ${getSourceName(manga.source)}`}
</h3>
</div>
</div>

View File

@@ -332,13 +332,7 @@ export default function ReaderNavBar(props: IProps) {
<hr />
<div className={classes.navigation}>
<span>
Currently on page
{' '}
{curPage + 1}
{' '}
of
{' '}
{chapter.pageCount}
{`Currently on page ${curPage + 1} of ${chapter.pageCount}`}
</span>
<div className={classes.navigationChapters}>
{chapter.index > 1