diff --git a/.gitignore b/.gitignore index 7b0c4b0..ab7a6c3 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,4 @@ yarn-error.log* # turbo .turbo +.vercel diff --git a/composable-ui/src/components/klevu/klevu.tsx b/composable-ui/src/components/klevu/klevu.tsx index 2359233..cf0d61c 100644 --- a/composable-ui/src/components/klevu/klevu.tsx +++ b/composable-ui/src/components/klevu/klevu.tsx @@ -92,25 +92,14 @@ function CustomGridRenderer(props: { products: KlevuRecord[] }) { return ( {props.products.map((product) => { + // additionalDataToReturn is JSON have been indexed to display key on the product. + const originalProductJSON = JSON.parse(product.additionalDataToReturn).default return ( {/* Above: Components should be put inside KlevuProduct that has `isWrapper` prop defined. It means that it's empty shell. */} {/* Below: Here you can use your own components */} ) diff --git a/composable-ui/src/components/product-listing-page/product-listing-page.tsx b/composable-ui/src/components/product-listing-page/product-listing-page.tsx index f496590..c115ef7 100644 --- a/composable-ui/src/components/product-listing-page/product-listing-page.tsx +++ b/composable-ui/src/components/product-listing-page/product-listing-page.tsx @@ -43,6 +43,8 @@ export const ProductListingPage = ({ const [productsGridOption, setProductsGridOption] = useState('comfortable') + return null + /* return ( @@ -116,4 +118,5 @@ export const ProductListingPage = ({ ) + */ }