diff --git a/components/landing-page/content-category.tsx b/components/landing-page/content-category.tsx index db12a546..9fb80773 100644 --- a/components/landing-page/content-category.tsx +++ b/components/landing-page/content-category.tsx @@ -7,6 +7,7 @@ import { useTranslations } from "next-intl"; import { usePathname } from "next/navigation"; import { useParams } from "next/navigation"; import Image from "next/image"; +import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from "../ui/carousel"; const ContentCategory = (props: { group?: string }) => { const [categories, setCategories] = useState(); @@ -67,60 +68,42 @@ const ContentCategory = (props: { group?: string }) => {
-
- {categories?.map((category: any, index: number) => - !seeAllValue ? ( - index < 4 ? ( - - {/* Gambar */} - category +
+ + + {categories?.map((category: any) => ( + + + {/* Gambar */} + category - {/* Overlay gelap */} -
+ {/* Overlay gelap */} +
- {/* Judul */} -
-

{category?.name}

-
- - ) : ( - "" - ) - ) : ( - - {/* Gambar */} - category - - {/* Overlay Gelap */} -
- - {/* Judul */} -
-

{category?.name}

-
- - ) - )} + {/* Judul */} +
+

{category?.name}

+
+ +
+ ))} +
+ + +
-
+ {/*
-
+
*/}
);