Skip to content

Commit

Permalink
Add missing stage to page (#3088)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelblum authored Jan 13, 2025
1 parent 856297f commit 6089aa0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo/site/src/documents/pages/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { generateImageUrl, gql, previewParams } from "@comet/cms-site";
import Breadcrumbs from "@src/common/components/Breadcrumbs";
import { breadcrumbsFragment } from "@src/common/components/Breadcrumbs.fragment";
import { PageContentBlock } from "@src/documents/pages/blocks/PageContentBlock";
import { StageBlock } from "@src/documents/pages/blocks/StageBlock";
import { GQLPageTreeNodeScopeInput } from "@src/graphql.generated";
import { Header } from "@src/layout/header/Header";
import { headerFragment } from "@src/layout/header/Header.fragment";
Expand All @@ -23,6 +24,7 @@ const pageQuery = gql`
... on Page {
content
seo
stage
}
}
...Breadcrumbs
Expand Down Expand Up @@ -149,6 +151,7 @@ export async function Page({ pageTreeNodeId, scope }: { pageTreeNodeId: string;
<Header header={data.header} />
<Breadcrumbs {...data.pageContent} />
<div>
<StageBlock data={document.stage} />
<PageContentBlock data={data.pageContent.document.content} />
</div>
</>
Expand Down

0 comments on commit 6089aa0

Please sign in to comment.