better UI on mobile for SourceCard

This commit is contained in:
Aria Moradi
2021-09-09 20:43:13 +04:30
parent 3154247300
commit 2e96dcedb3
2 changed files with 116 additions and 28 deletions

View File

@@ -44,9 +44,20 @@ export default function MangaGrid(props: IProps) {
} else {
mapped = mangas.map((it, idx) => {
if (idx === mangas.length - 1) {
return <MangaCard manga={it} ref={lastManga} />;
return (
<MangaCard
key={it.id}
manga={it}
ref={lastManga}
/>
);
}
return <MangaCard manga={it} />;
return (
<MangaCard
key={it.id}
manga={it}
/>
);
});
}