Skip to content

Commit

Permalink
Wrapped RecentlyViewedProducts in AddProductsToCartForm
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessevdpoel committed Jan 3, 2024
1 parent b442855 commit 345a78d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/magento-graphcms/pages/p/[url].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,13 @@ function ProductPage(props: Props) {
}}
/>
)}

<RecentlyViewedProducts
title={<Trans id='Recently viewed products' />}
exclude={[product.sku]}
productListRenderer={productListRenderer}
/>
<AddProductsToCartForm>
<RecentlyViewedProducts
title={<Trans id='Recently viewed products' />}
exclude={[product.sku]}
productListRenderer={productListRenderer}
/>
</AddProductsToCartForm>
</>
)
}
Expand Down

0 comments on commit 345a78d

Please sign in to comment.