From 04f115369919e6bab2f0c2bccce4741c48ca4ab4 Mon Sep 17 00:00:00 2001 From: r-southworth Date: Tue, 13 Aug 2024 18:09:33 -0400 Subject: [PATCH] add english icon and update specialty icon --- src/assets/categoryIcons/open-book.svg | 22 +++++++++++++++++++++ src/assets/categoryIcons/thought-bubble.svg | 2 ++ src/components/home/HomeSubjectCarousel.tsx | 9 ++++++--- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 src/assets/categoryIcons/open-book.svg create mode 100644 src/assets/categoryIcons/thought-bubble.svg diff --git a/src/assets/categoryIcons/open-book.svg b/src/assets/categoryIcons/open-book.svg new file mode 100644 index 00000000..d06473de --- /dev/null +++ b/src/assets/categoryIcons/open-book.svg @@ -0,0 +1,22 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/assets/categoryIcons/thought-bubble.svg b/src/assets/categoryIcons/thought-bubble.svg new file mode 100644 index 00000000..1b43b89b --- /dev/null +++ b/src/assets/categoryIcons/thought-bubble.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/src/components/home/HomeSubjectCarousel.tsx b/src/components/home/HomeSubjectCarousel.tsx index 4750f283..7d36d306 100644 --- a/src/components/home/HomeSubjectCarousel.tsx +++ b/src/components/home/HomeSubjectCarousel.tsx @@ -15,9 +15,10 @@ import art from "../../assets/categoryIcons/art.svg"; import geography from "../../assets/categoryIcons/geography.svg"; import math from "../../assets/categoryIcons/math.svg"; import science from "../../assets/categoryIcons/science.svg"; -import specialty from "../../assets/categoryIcons/specialty.svg"; -import holiday from "../../assets/categoryIcons/history.svg"; +import specialty from "../../assets/categoryIcons/thought-bubble.svg"; +import holiday from "../../assets/categoryIcons/holiday.svg"; import social from "../../assets/categoryIcons/social.svg"; +import ela from "../../assets/categoryIcons/open-book.svg"; let categories: Array = []; @@ -51,6 +52,8 @@ categories.map((category) => { category.icon = social; } else if (category.id === 8) { category.icon = specialty; + } else if (category.id === 9) { + category.icon = ela; } }); @@ -118,7 +121,7 @@ export const HomeSubjectCarousel: Component = () => {
-

+

{item.name}{" "}