From 8a4b41c0e08a76fea2c61871e77ee9c7e6730b86 Mon Sep 17 00:00:00 2001 From: Prayag Prajapati Date: Thu, 28 Mar 2024 21:58:55 +0530 Subject: [PATCH] chore: add kitsu icon to iconLink --- src/assets/icons/anilist.svg | 6 ++--- src/assets/icons/kitsu.svg | 4 ++++ src/components/card/card.tsx | 37 +++++++++---------------------- src/components/iconLink/index.tsx | 5 +++++ 4 files changed, 22 insertions(+), 30 deletions(-) create mode 100644 src/assets/icons/kitsu.svg diff --git a/src/assets/icons/anilist.svg b/src/assets/icons/anilist.svg index fa2aa9f..ce76374 100644 --- a/src/assets/icons/anilist.svg +++ b/src/assets/icons/anilist.svg @@ -1,4 +1,4 @@ - - - + + + diff --git a/src/assets/icons/kitsu.svg b/src/assets/icons/kitsu.svg new file mode 100644 index 0000000..8f449f5 --- /dev/null +++ b/src/assets/icons/kitsu.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/card/card.tsx b/src/components/card/card.tsx index 586c1f0..a4c3dc8 100644 --- a/src/components/card/card.tsx +++ b/src/components/card/card.tsx @@ -89,16 +89,12 @@ export const Card = ({ opacity: item.UserData?.Played ? 1 : 0, }} > -
- done -
+
done
)} */}
- {overrideIcon - ? getTypeIcon(overrideIcon) - : getTypeIcon(item.Type)} + {overrideIcon ? getTypeIcon(overrideIcon) : getTypeIcon(item.Type)}
{item.Name} - + {cardTitle} { @@ -51,6 +53,9 @@ const IconLink = ({ name, url }: { name: string; url: string }) => { {name.toLocaleLowerCase() === "theaudiodb" && ( TheAudioDB )} + {name.toLocaleLowerCase() === "kitsu" && ( + Kitsu + )} {!knownIcons.includes(name.toLocaleLowerCase()) && ( {name} )}