Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the Download filter and download badge #62

Merged
merged 3 commits into from
Nov 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/components/library/LibraryMangaGrid.tsx
Co-authored-by: Sascha Hahne <ntbm@users.noreply.github.com>
  • Loading branch information
ff2400t and ntbm authored Nov 5, 2021
commit 635c260dd504400f9adb2abb99f3daa538600727
12 changes: 0 additions & 12 deletions src/components/library/LibraryMangaGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ function downloadedFilter(downloaded: NullAndUndefined<boolean>,
}
}

// function downloadedFilter(downloaded: NullAndUndefined<boolean>,
// { downloadCount }: IMangaCard): boolean {
// switch (downloaded) {
// case true:
// return !!downloaded && downloadCount >= 1;
// case false:
// return downloadCount === 0;
// default:
// return true;
// }
// }

function queryFilter(query: NullAndUndefined<string>, { title }: IMangaCard): boolean {
if (!query) return true;
return title.toLowerCase().includes(query.toLowerCase());
Expand Down