diff --git a/src/components/MangaCard.tsx b/src/components/MangaCard.tsx index 1e75a2df9e..995055ddb3 100644 --- a/src/components/MangaCard.tsx +++ b/src/components/MangaCard.tsx @@ -75,7 +75,8 @@ interface IProps { const MangaCard = React.forwardRef((props: IProps, ref) => { const { manga: { - id, title, thumbnailUrl, downloadCount, unreadCount: unread, + // eslint-disable-next-line @typescript-eslint/no-unused-vars + id, title, thumbnailUrl, downloadCount, unreadCount: unread, inLibrary, }, gridLayout, } = props; @@ -110,6 +111,13 @@ const MangaCard = React.forwardRef((props: IProps, ref) > + {inLibrary && ( + + In library + + )} { showUnreadBadge && unread! > 0 && ( ((props: IProps, ref) ((props: IProps, ref) > ((props: IProps, ref) + {inLibrary && ( + + In library + + )} { showUnreadBadge && unread! > 0 && ( { + // eslint-disable-next-line no-param-reassign + ele.inLibrary = undefined; + return ele; + }); const showFilteredOutMessage = (active || query) && filteredManga.length === 0 && mangas.length > 0; return (