From 9f006b36ab4e4cb2913fca6029dca56403a797ef Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Tue, 21 Jul 2026 11:20:07 +0330 Subject: [PATCH] ref product section --- src/pages/home/components/ServiceItem.tsx | 4 ++-- src/pages/home/components/Services.tsx | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/home/components/ServiceItem.tsx b/src/pages/home/components/ServiceItem.tsx index 5e1d6b2..2bda228 100644 --- a/src/pages/home/components/ServiceItem.tsx +++ b/src/pages/home/components/ServiceItem.tsx @@ -4,8 +4,8 @@ import { type FC } from 'react' const ServiceItem: FC<{ product: ProductType }> = ({ product }) => { return ( -
-
+
+
{product.images?.[0] ? ( ( ) const ServicesSkeleton: FC = () => ( -
+
{Array.from({ length: SKELETON_COUNT }).map((_, index) => (
-
+
))} @@ -98,7 +98,7 @@ const Services: FC = () => { /> ) : null} -
+
{isLoading ? ( ) : products.length === 0 ? ( @@ -106,7 +106,7 @@ const Services: FC = () => { {t('home.noProducts')}

) : ( -
+
{products.map((item) => ( ))}