Skip to content

Commit

Permalink
feat(pdc-frontend): integrate the page content field
Browse files Browse the repository at this point in the history
  • Loading branch information
AliKdhim87 committed Oct 19, 2023
1 parent f28ab39 commit 8995edd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/pdc-frontend/src/app/[locale]/products/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ const Product = async ({ params: { locale, slug }, searchParams }: ProductProps)
/>
)}
<PageTitle>{product?.attributes.title}</PageTitle>
{product?.attributes?.content && (
<Markdown imageUrl={getImageBaseUrl()} priceData={priceData} locale={locale}>
{product?.attributes?.content}
</Markdown>
)}
<Sections />
</Article>
<BottomBar>
Expand Down
1 change: 1 addition & 0 deletions apps/pdc-frontend/src/query/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const GET_PRODUCT_BY_SLUG_FETCH = gql(`
description
keymatch
}
content
sections {
... on ComponentComponentsImage {
__typename
Expand Down

0 comments on commit 8995edd

Please sign in to comment.