From 616d8ffc973eba673069243ec8981b5234234fe5 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 8 Aug 2024 17:09:56 +0700
Subject: <iman> add similar product template

---
 src-migrate/modules/product-detail/components/SimilarBottom.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src-migrate/modules/product-detail/components/SimilarBottom.tsx')

diff --git a/src-migrate/modules/product-detail/components/SimilarBottom.tsx b/src-migrate/modules/product-detail/components/SimilarBottom.tsx
index 40d4dd82..ab33f106 100644
--- a/src-migrate/modules/product-detail/components/SimilarBottom.tsx
+++ b/src-migrate/modules/product-detail/components/SimilarBottom.tsx
@@ -5,12 +5,14 @@ import { IProductDetail } from '~/types/product'
 
 type Props = {
   product: IProductDetail
+  source: string
 }
 
-const SimilarBottom = ({ product }: Props) => {
+const SimilarBottom = ({ product, source }: Props) => {
   const productSimilar = useProductSimilar({
     name: product.name,
-    except: { productId: product.id }
+    except: { productId: product.id },
+    source: source
   })
 
   const products = productSimilar.data?.products || []
-- 
cgit v1.2.3

