Skip to content

Commit

Permalink
Allow adding elements after/between product list items (e.g. banners)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramvanderholst authored and paales committed Dec 2, 2024
1 parent cb8d2f0 commit 673bf7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-camels-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-product': patch
---

Allow adding elements after/between product list items (e.g. banners)
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export type ProductItemsGridProps = ProductListItemsFragment & {
sx?: BoxProps['sx']
columns?: ((theme: Theme) => ColumnsConfig) | ColumnsConfig
containerRef?: React.Ref<HTMLDivElement>
children?: React.ReactNode
} & Pick<ProductListItemProps, 'onClick' | 'titleComponent'> &
ComponentState

Expand All @@ -57,6 +58,7 @@ export function ProductListItemsBase(props: ProductItemsGridProps) {
titleComponent,
onClick,
columns,
children,
} = props

const theme = useTheme()
Expand Down Expand Up @@ -124,6 +126,7 @@ export function ProductListItemsBase(props: ProductItemsGridProps) {
</LazyHydrate>
) : null,
)}
{children}
</Box>
</AddProductsToCartForm>
)
Expand Down

0 comments on commit 673bf7c

Please sign in to comment.