Skip to content

Commit

Permalink
Solve issue where the pagebuilder fields wouldn’t be send to the Cate…
Browse files Browse the repository at this point in the history
…goryDescription component.
  • Loading branch information
paales committed Jan 16, 2025
1 parent d09c98b commit 9ec5b68
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const ProductListLayoutClassic = memoDeep((props: ProductListLayoutProps)
</LayoutTitle>
<CategoryDescription
sx={(theme) => ({ textAlign: 'center', mb: theme.spacings.sm })}
description={category?.description}
{...category}
/>
<CategoryChildren
params={params}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const ProductListLayoutDefault = memoDeep((props: ProductListLayoutProps)
textAlignMd='center'
textAlignSm='center'
sx={(theme) => ({ px: theme.page.horizontal })}
description={category?.description}
{...category}
/>
<CategoryChildren
sx={(theme) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,7 @@ export const ProductListLayoutSidebar = memoDeep((props: ProductListLayoutProps)
<>
<Typography variant='h1'>{title}</Typography>

<CategoryDescription
textAlignMd='start'
textAlignSm='start'
description={category?.description}
/>
<CategoryDescription textAlignMd='start' textAlignSm='start' {...category} />
<MediaQuery query={(theme) => theme.breakpoints.down('md')}>
<CategoryChildren params={params}>{category?.children}</CategoryChildren>
</MediaQuery>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const ProductListLayoutClassic = memoDeep((props: ProductListLayoutProps)
</LayoutTitle>
<CategoryDescription
sx={(theme) => ({ textAlign: 'center', mb: theme.spacings.sm })}
description={category?.description}
{...category}
/>
<CategoryChildren
params={params}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const ProductListLayoutDefault = memoDeep((props: ProductListLayoutProps)
textAlignMd='center'
textAlignSm='center'
sx={(theme) => ({ px: theme.page.horizontal })}
description={category?.description}
{...category}
/>
<CategoryChildren
sx={(theme) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ export const ProductListLayoutSidebar = memoDeep((props: ProductListLayoutProps)
<>
<Typography variant='h1'>{title}</Typography>

<CategoryDescription
textAlignMd='start'
textAlignSm='start'
description={category?.description}
/>
<CategoryDescription textAlignMd='start' textAlignSm='start' {...category} />
<MediaQuery query={(theme) => theme.breakpoints.down('md')}>
<CategoryChildren params={params}>{category?.children}</CategoryChildren>
</MediaQuery>
Expand Down
1 change: 1 addition & 0 deletions packages/next-ui/Container/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const Container = React.forwardRef(
className={[className, classes.root].filter((v) => !!v).join(' ')}
sx={[
{
width: '100%',
pl: !breakoutLeft ? padding : undefined,
pr: !breakoutRight ? padding : undefined,
'&.breakoutLeft': { pl: 'unset' },
Expand Down

0 comments on commit 9ec5b68

Please sign in to comment.