summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-detail
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-08-09 03:56:04 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-08-09 03:56:04 +0000
commitea7e2cf8f768c3d3202c282182de6355b3ee32ee (patch)
tree3153024ccaa24192b3adf94c44f179cc9b344f8e /src-migrate/modules/product-detail
parentc9090a89b775a1e3c2f1e707021e6375eb9f92e3 (diff)
parentbbbd7ccaab3102558dc82cbd051947b0e579360c (diff)
Merged in Feature/template-switch (pull request #228)
Feature/template switch
Diffstat (limited to 'src-migrate/modules/product-detail')
-rw-r--r--src-migrate/modules/product-detail/components/ProductDetail.tsx2
-rw-r--r--src-migrate/modules/product-detail/components/SimilarBottom.tsx1
2 files changed, 1 insertions, 2 deletions
diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx
index 6bd025af..169e1903 100644
--- a/src-migrate/modules/product-detail/components/ProductDetail.tsx
+++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx
@@ -37,7 +37,7 @@ const ProductDetail = ({ product }: Props) => {
const router = useRouter()
const auth = getAuth()
const { setAskAdminUrl, askAdminUrl, activeVariantId, setIsApproval, isApproval } = useProductDetail()
-
+
useEffect(() => {
gtagProductDetail(product);
},[product])
diff --git a/src-migrate/modules/product-detail/components/SimilarBottom.tsx b/src-migrate/modules/product-detail/components/SimilarBottom.tsx
index ab33f106..8ff0a6bf 100644
--- a/src-migrate/modules/product-detail/components/SimilarBottom.tsx
+++ b/src-migrate/modules/product-detail/components/SimilarBottom.tsx
@@ -16,7 +16,6 @@ const SimilarBottom = ({ product, source }: Props) => {
})
const products = productSimilar.data?.products || []
-
return (
<Skeleton
isLoaded={!productSimilar.isLoading}