Apply Api changes for unread badges (#52)
This commit is contained in:
@@ -81,7 +81,7 @@ interface IProps {
|
|||||||
const MangaCard = React.forwardRef<HTMLDivElement, IProps>((props: IProps, ref) => {
|
const MangaCard = React.forwardRef<HTMLDivElement, IProps>((props: IProps, ref) => {
|
||||||
const {
|
const {
|
||||||
manga: {
|
manga: {
|
||||||
id, title, thumbnailUrl, unread_count: unread,
|
id, title, thumbnailUrl, unreadCount: unread,
|
||||||
},
|
},
|
||||||
} = props;
|
} = props;
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
|
|||||||
4
src/typings.d.ts
vendored
4
src/typings.d.ts
vendored
@@ -34,7 +34,7 @@ interface IMangaCard {
|
|||||||
id: number
|
id: number
|
||||||
title: string
|
title: string
|
||||||
thumbnailUrl: string
|
thumbnailUrl: string
|
||||||
unread_count?: number
|
unreadCount?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IManga {
|
interface IManga {
|
||||||
@@ -57,7 +57,7 @@ interface IManga {
|
|||||||
realUrl: string
|
realUrl: string
|
||||||
|
|
||||||
freshData: boolean
|
freshData: boolean
|
||||||
unread_count?: number
|
unreadCount?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IChapter {
|
interface IChapter {
|
||||||
|
|||||||
Reference in New Issue
Block a user