diff --git a/db/model/Gdoc/rawToEnriched.ts b/db/model/Gdoc/rawToEnriched.ts index bae5d4e3b7f..2585f2e5994 100644 --- a/db/model/Gdoc/rawToEnriched.ts +++ b/db/model/Gdoc/rawToEnriched.ts @@ -1398,6 +1398,7 @@ function parseCallout(raw: RawBlockCallout): EnrichedBlockCallout { return { type: "callout", + icon: raw.value.icon, parseErrors: [], text: excludeNullish(enrichedTextBlocks), title: raw.value.title, diff --git a/packages/@ourworldindata/types/src/gdocTypes/ArchieMlComponents.ts b/packages/@ourworldindata/types/src/gdocTypes/ArchieMlComponents.ts index 90aa20c4299..082af863238 100644 --- a/packages/@ourworldindata/types/src/gdocTypes/ArchieMlComponents.ts +++ b/packages/@ourworldindata/types/src/gdocTypes/ArchieMlComponents.ts @@ -512,6 +512,7 @@ export type EnrichedBlockProminentLink = { export type RawBlockCallout = { type: "callout" value: { + icon?: "info" title?: string text: (RawBlockText | RawBlockHeading | RawBlockList)[] } @@ -519,6 +520,7 @@ export type RawBlockCallout = { export type EnrichedBlockCallout = { type: "callout" + icon?: "info" title?: string text: (EnrichedBlockText | EnrichedBlockHeading | EnrichedBlockList)[] } & EnrichedBlockWithParseErrors diff --git a/site/gdocs/components/ArticleBlock.tsx b/site/gdocs/components/ArticleBlock.tsx index c0471598197..b4998618028 100644 --- a/site/gdocs/components/ArticleBlock.tsx +++ b/site/gdocs/components/ArticleBlock.tsx @@ -1,6 +1,7 @@ import React from "react" import cx from "classnames" +import Callout from "./Callout.js" import ChartStory from "./ChartStory.js" import Scroller from "./Scroller.js" import Chart from "./Chart.js" @@ -261,14 +262,10 @@ export default function ArticleBlock({ /> )) .with({ type: "callout" }, (block) => ( -