Require manga library removal confirmation only in source browse

This commit is contained in:
schroda
2024-04-21 03:50:41 +02:00
parent c877ea23d3
commit 6f90eea762
2 changed files with 19 additions and 10 deletions

View File

@@ -46,7 +46,10 @@ export const MangaCard = (props: MangaCardProps) => {
options: { showContinueReadingButton },
} = useLibraryOptionsContext();
const { CategorySelectComponent, updateLibraryState, isInLibrary } = useManageMangaLibraryState(manga);
const { CategorySelectComponent, updateLibraryState, isInLibrary } = useManageMangaLibraryState(
manga,
mode === 'source',
);
const mangaLinkTo = getMangaLinkTo(mode, manga.id, manga.source?.id, manga.title);