diff --git a/packages/schema/src/fragments/PageContent/BlockInfoGrid.gql b/packages/schema/src/fragments/PageContent/BlockInfoGrid.gql index 4cb06f16e..c646d04a0 100644 --- a/packages/schema/src/fragments/PageContent/BlockInfoGrid.gql +++ b/packages/schema/src/fragments/PageContent/BlockInfoGrid.gql @@ -6,6 +6,9 @@ fragment BlockInfoGrid on BlockInfoGrid { fragment BlockInfoGridItem on BlockInfoGridItem { icon + cta { + ...BlockCta + } textContent { markup } diff --git a/packages/schema/src/schema.graphql b/packages/schema/src/schema.graphql index 5aa970cd7..742a57983 100644 --- a/packages/schema/src/schema.graphql +++ b/packages/schema/src/schema.graphql @@ -291,6 +291,7 @@ type BlockInfoGrid @type(id: "custom/info-grid") { type BlockInfoGridItem @default @value { icon: String! @resolveEditorBlockAttribute(key: "icon") textContent: BlockMarkup @resolveEditorBlockChildren @seek(pos: 0) + cta: BlockCta @resolveEditorBlockChildren @seek(pos: 1) } input PaginationInput { diff --git a/packages/ui/src/components/Organisms/PageDisplay.tsx b/packages/ui/src/components/Organisms/PageDisplay.tsx index 7d4d286af..88734f002 100644 --- a/packages/ui/src/components/Organisms/PageDisplay.tsx +++ b/packages/ui/src/components/Organisms/PageDisplay.tsx @@ -82,7 +82,17 @@ export function PageDisplay(page: PageFragment) {

Icon: {item?.icon}

Markup: {item?.textContent?.markup}

+

CTA Url: {item?.cta?.url}

+

CTA Icon: {item?.cta?.icon}

+

+ CTA Icon Position: {item?.cta?.iconPosition} +

+

CTA Text: {item?.cta?.text}

+

+ CTA Open in New Tab: {item?.cta?.openInNewTab} +

+
); })}