Apply Api changes for unread badges (#52)

This commit is contained in:
Sascha Hahne
2021-10-28 22:37:13 +02:00
committed by GitHub
parent 07ca737a37
commit e9236f3a61
2 changed files with 3 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ interface IProps {
const MangaCard = React.forwardRef<HTMLDivElement, IProps>((props: IProps, ref) => {
const {
manga: {
id, title, thumbnailUrl, unread_count: unread,
id, title, thumbnailUrl, unreadCount: unread,
},
} = props;
const classes = useStyles();

4
src/typings.d.ts vendored
View File

@@ -34,7 +34,7 @@ interface IMangaCard {
id: number
title: string
thumbnailUrl: string
unread_count?: number
unreadCount?: number
}
interface IManga {
@@ -57,7 +57,7 @@ interface IManga {
realUrl: string
freshData: boolean
unread_count?: number
unreadCount?: number
}
interface IChapter {