chore: add kitsu icon to iconLink

This commit is contained in:
Prayag Prajapati committed 2024-03-28 21:58:55 +05:30
1 parent dbd394619f
commit 8a4b41c0e0
4 files changed
+22 -30

No files matched your search

+5
View File
@@ -5,6 +5,7 @@ import anidbIcon from "../../assets/icons/anidb.png";
import anilistIcon from "../../assets/icons/anilist.svg";
import audioDBIcon from "../../assets/icons/audioDB.png";
import imdbIcon from "../../assets/icons/imdb.svg";
import kitsuIcon from "../../assets/icons/kitsu.svg";
import musicBrainzIcon from "../../assets/icons/musicbrainz.svg";
import tvDbIcon from "../../assets/icons/the-tvdb.svg";
import tmdbIcon from "../../assets/icons/themoviedatabase.svg";
@@ -21,6 +22,7 @@ const knownIcons = [
"anilist",
"tvmaze",
"theaudiodb",
"kitsu",
];
const IconLink = ({ name, url }: { name: string; url: string }) => {
@@ -51,6 +53,9 @@ const IconLink = ({ name, url }: { name: string; url: string }) => {
{name.toLocaleLowerCase() === "theaudiodb" && (
<img src={audioDBIcon} alt="TheAudioDB" />
)}
{name.toLocaleLowerCase() === "kitsu" && (
<img src={kitsuIcon} alt="Kitsu" />
)}
{!knownIcons.includes(name.toLocaleLowerCase()) && (
<Typography>{name}</Typography>
)}