migrate genre type
This commit is contained in:
@@ -117,7 +117,7 @@ const useStyles = (inLibrary: string) => makeStyles((theme: Theme) => ({
|
||||
}));
|
||||
|
||||
interface IProps{
|
||||
manga: IManga
|
||||
manga: IAnime
|
||||
}
|
||||
|
||||
function getSourceName(source: ISource) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user