-
{item.media.title.romaji}
+
{data[imageIndex]?.media.title.romaji}
- {item.media.seasonYear != undefined && (
-
{item.media.seasonYear.toString()}
+ {data[imageIndex]?.media.seasonYear != undefined && (
+
{data[imageIndex].media.seasonYear.toString()}
)}
- {((item.media.genres != undefined) && (item.media.seasonYear != undefined)) && (
+ {((data[imageIndex]?.media.genres != undefined) && (data[imageIndex]?.media.seasonYear != undefined)) && (
|
)}
- {item.media.genres != undefined && (
-
{item.media.genres[0]}
+ {data[imageIndex]?.media.genres != undefined && (
+
{data[imageIndex]?.media.genres[0]}
)}
- {((item.media.seasonYear != undefined) && (item.media.episodes != undefined)) && (
+ {((data[imageIndex]?.media.seasonYear != undefined) && (data[imageIndex]?.media.episodes != undefined)) && (
|
)}
- {item.media.episodes != undefined && (
-
{item.media.episodes.toString()} Episodes
+ {data[imageIndex]?.media.episodes != undefined && (
+
{data[imageIndex].media.episodes.toString()} Episodes
)}
- WATCH NOW
+ WATCH NOW
@@ -131,11 +117,12 @@ function HeroCarousel({ data }: { data: ApiTrendingMidiaResults[] }) {
-
- ))
- )}
+
+
+
-
+
+ )}
@@ -146,7 +133,10 @@ function HeroCarousel({ data }: { data: ApiTrendingMidiaResults[] }) {
data.slice(0, 6).map((item: ApiTrendingMidiaResults, key: number) => (
item.media.bannerImage && (
-
+
+
+
+ {item.media.title.romaji}
))
)
diff --git a/front-end/package-lock.json b/front-end/package-lock.json
index f0798141..9b06f825 100644
--- a/front-end/package-lock.json
+++ b/front-end/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "front-end",
- "version": "2.0.0",
+ "version": "2.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "front-end",
- "version": "2.0.0",
+ "version": "2.0.1",
"dependencies": {
"axios": "^1.6.6",
"framer-motion": "^11.0.3",
diff --git a/front-end/package.json b/front-end/package.json
index 340ff81e..84ee61fe 100644
--- a/front-end/package.json
+++ b/front-end/package.json
@@ -1,6 +1,6 @@
{
"name": "front-end",
- "version": "2.0.0",
+ "version": "2.0.1",
"private": true,
"scripts": {
"dev": "next dev",