diff --git a/components/common/HomeAllProductsGrid/HomeAllProductsGrid.tsx b/components/common/HomeAllProductsGrid/HomeAllProductsGrid.tsx index 0a40bff2e..7194abf89 100644 --- a/components/common/HomeAllProductsGrid/HomeAllProductsGrid.tsx +++ b/components/common/HomeAllProductsGrid/HomeAllProductsGrid.tsx @@ -28,7 +28,7 @@ const HomeAllProductsGrid: FC = ({ {categories.map((cat: any) => ( -
  • +
  • {cat.name} @@ -42,7 +42,7 @@ const HomeAllProductsGrid: FC = ({
  • {brands.flatMap(({ node }: any) => ( -
  • +
  • {node.name} diff --git a/components/product/ProductCard/ProductCard.tsx b/components/product/ProductCard/ProductCard.tsx index 0e539160b..624a2ce5a 100644 --- a/components/product/ProductCard/ProductCard.tsx +++ b/components/product/ProductCard/ProductCard.tsx @@ -5,7 +5,7 @@ import type { Product } from '@commerce/types/product' import s from './ProductCard.module.css' import Image, { ImageProps } from 'next/image' import WishlistButton from '@components/wishlist/WishlistButton' -// import usePrice from '@framework/product/use-price' +import usePrice from '@framework/product/use-price' import ProductTag from '../ProductTag' interface Props { @@ -25,11 +25,11 @@ const ProductCard: FC = ({ noNameTag = false, variant = 'default', }) => { - // const { price } = usePrice({ - // amount: product.price.value, - // baseAmount: product.price.retailPrice, - // currencyCode: product.price.currencyCode!, - // }) + const { price } = usePrice({ + amount: product.price.value, + baseAmount: product.price.retailPrice, + currencyCode: product.price.currencyCode!, + }) const rootClassName = cn( s.root, @@ -74,7 +74,7 @@ const ProductCard: FC = ({ {product.name}
    - {/* {`${price} ${product.price?.currencyCode}`} */} + {`${price} ${product.price?.currencyCode}`}
    )} diff --git a/framework/woocommerce/product/use-price.tsx.t b/framework/woocommerce/product/use-price.tsx similarity index 100% rename from framework/woocommerce/product/use-price.tsx.t rename to framework/woocommerce/product/use-price.tsx