From ac9b03c4e2acc3804ddd6417360439041414de2a Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sat, 21 Feb 2026 09:45:27 +0330 Subject: [PATCH] fix category --- src/app/home/components/Categories.tsx | 21 +++++---------------- src/app/page.tsx | 14 +++++++------- 2 files changed, 12 insertions(+), 23 deletions(-) diff --git a/src/app/home/components/Categories.tsx b/src/app/home/components/Categories.tsx index 4e6d1f4..9a84ec4 100644 --- a/src/app/home/components/Categories.tsx +++ b/src/app/home/components/Categories.tsx @@ -3,7 +3,6 @@ import React from 'react' import CategoryItem from './CategoryItem' import { useGetCategories } from '@/share/hooks/useShareData' import { Category } from '@/share/types/SharedTypes' -import { Swiper, SwiperSlide } from 'swiper/react' const Categories = () => { @@ -11,24 +10,14 @@ const Categories = () => { const parentCategories = data?.results?.data?.filter(cat => !cat.parent) || [] return ( -
- +
+
{parentCategories?.map((item: Category) => ( - +
- +
))} - +
) } diff --git a/src/app/page.tsx b/src/app/page.tsx index 955be12..148035a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -18,16 +18,16 @@ export const dynamic = 'force-dynamic' const HomePage: NextPage = () => { return ( -
+
-
- -
-
- -
+
+
+ +
+
+