migrate genre type

This commit is contained in:
Aria Moradi
2021-09-05 01:11:25 +04:30
parent ba26d852dc
commit e4853864ec
7 changed files with 29 additions and 7 deletions

View File

@@ -117,7 +117,7 @@ const useStyles = (inLibrary: string) => makeStyles((theme: Theme) => ({
}));
interface IProps{
manga: IManga
manga: IAnime
}
function getSourceName(source: ISource) {

View File

@@ -247,7 +247,7 @@ export default function MangaDetails(props: IProps) {
<p>{manga.description}</p>
</div>
<div className={classes.genre}>
{manga.genre?.split(', ').map((g) => <h5 key={g}>{g}</h5>)}
{manga.genre.map((g) => <h5 key={g}>{g}</h5>)}
</div>
</div>
</div>