Skip to content

Commit

Permalink
Merge pull request #126 from datagrove/bugFix
Browse files Browse the repository at this point in the history
add english icon and update specialty icon
  • Loading branch information
r-southworth authored Aug 13, 2024
2 parents 61e48c8 + 04f1153 commit dc5c64a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
22 changes: 22 additions & 0 deletions src/assets/categoryIcons/open-book.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/assets/categoryIcons/thought-bubble.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions src/components/home/HomeSubjectCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> = [];

Expand Down Expand Up @@ -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;
}
});

Expand Down Expand Up @@ -118,7 +121,7 @@ export const HomeSubjectCarousel: Component = () => {
</div>

<div class="flex h-44 flex-row items-center justify-center">
<p class="text-center text-xs text-ptext1 dark:text-ptext2-DM">
<p class="pt-1 text-center text-xs text-ptext1 dark:text-ptext2-DM">
{item.name}{" "}
</p>
</div>
Expand Down

0 comments on commit dc5c64a

Please sign in to comment.