@@ -62,15 +62,35 @@ const pageBlockRenderers: Partial<Record<PageBlock["blockType"], BlockRenderer>>
6262 widehero : ( block ) => < WideHeroSection content = { block as Extract < PageBlock , { blockType : "widehero" } > } /> ,
6363 listFeature : ( block ) => < ListFeatureSection content = { block as Extract < PageBlock , { blockType : "listFeature" } > } /> ,
6464 stats : ( block ) => < StatsSection content = { block as Extract < PageBlock , { blockType : "stats" } > } /> ,
65- actionHero : ( block , options ) => options . action ? < ActionHeroSection action = { options . action } locale = { options . locale ?? "en" } content = { block as Extract < PageBlock , { blockType : "actionHero" } > } /> : null ,
65+ actionHero : ( block , options ) =>
66+ options . action ? < ActionHeroSection action = { options . action } locale = { options . locale ?? "en" } content = { block as Extract < PageBlock , { blockType : "actionHero" } > } /> : null ,
6667 actionDetails : ( block , options ) => {
6768 if ( ! options . action ) return null
6869 const content = block as Extract < PageBlock , { blockType : "actionDetails" } >
69- return < ActionDetailSection action = { options . action } moduleJson = { options . actionModuleJson } sectionHeading = { content . sectionHeading } sectionLayout = { content . sectionLayout } sectionDescription = { content . sectionDescription } sectionLinkButton = { content . sectionLinkButton } flowTypesLabel = { content . flowTypesLabel } functionDefinitionsLabel = { content . functionDefinitionsLabel } />
70+ return (
71+ < ActionDetailSection
72+ moduleJson = { options . actionModuleJson }
73+ sectionHeading = { content . sectionHeading }
74+ sectionLayout = { content . sectionLayout }
75+ sectionDescription = { content . sectionDescription }
76+ sectionLinkButton = { content . sectionLinkButton }
77+ flowTypesLabel = { content . flowTypesLabel }
78+ functionDefinitionsLabel = { content . functionDefinitionsLabel }
79+ />
80+ )
7081 } ,
7182 actionReferences : ( block , options ) => {
7283 const content = block as Extract < PageBlock , { blockType : "actionReferences" } >
73- return < ActionReferencesSection references = { options . actionReferences ?? [ ] } locale = { options . locale ?? "en" } sectionHeading = { content . sectionHeading } sectionLayout = { content . sectionLayout } sectionDescription = { content . sectionDescription } sectionLinkButton = { content . sectionLinkButton } />
84+ return (
85+ < ActionReferencesSection
86+ references = { options . actionReferences ?? [ ] }
87+ locale = { options . locale ?? "en" }
88+ sectionHeading = { content . sectionHeading }
89+ sectionLayout = { content . sectionLayout }
90+ sectionDescription = { content . sectionDescription }
91+ sectionLinkButton = { content . sectionLinkButton }
92+ />
93+ )
7494 } ,
7595 actionList : ( block , options ) => < ActionListSection actions = { options . actions ?? [ ] } locale = { options . locale ?? "en" } content = { block as Extract < PageBlock , { blockType : "actionList" } > } /> ,
7696}
0 commit comments