File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { allModes } from '../../.storybook/modes';
44import { productImage } from '../../fixtures/manual/productImage' ;
55import { ArticleDesign , ArticleDisplay , Pillar } from '../lib/articleFormat' ;
66import { getNestedArticleElement } from '../lib/renderElement' ;
7+ import { extractHeadingText } from '../model/enhanceProductElement' ;
78import type { ProductBlockElement } from '../types/content' ;
89import { ProductElement } from './ProductElement' ;
910
@@ -23,7 +24,9 @@ const product = {
2324 _type : 'model.dotcomrendering.pageElements.ProductBlockElement' ,
2425 elementId : 'b1f6e8e2-3f3a-4f0c-8d1e-5f3e3e3e3e3e' ,
2526 primaryHeadingHtml : '<em>Best Kettle overall</em>' ,
27+ primaryHeadingText : extractHeadingText ( '<em>Best Kettle overall</em>' ) ,
2628 secondaryHeadingHtml : 'Bosch Sky Kettle' ,
29+ secondaryHeadingText : extractHeadingText ( 'Bosch Sky Kettle' ) ,
2730 brandName : 'Bosch' ,
2831 productName : 'Sky Kettle' ,
2932 image : productImage ,
You can’t perform that action at this time.
0 commit comments