Skip to content

Commit 6e6f48f

Browse files
story where now fields are rendered
1 parent cc0dd39 commit 6e6f48f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

dotcom-rendering/src/components/ProductElement.stories.tsx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,3 +544,38 @@ export const MultipleProductsWithoutStats: StoryFn = () => {
544544
</>
545545
);
546546
};
547+
548+
export const withoutFields: StoryFn = () => {
549+
return (
550+
<>
551+
<ProductElement
552+
product={{
553+
...product,
554+
primaryHeading: '',
555+
secondaryHeading: '',
556+
brandName: '',
557+
productName: '',
558+
primaryCta: '',
559+
primaryPrice: '',
560+
primaryRetailer: '',
561+
primaryProductUrl: '',
562+
secondaryCta: '',
563+
secondaryPrice: '',
564+
secondaryRetailer: '',
565+
secondaryProductUrl: '',
566+
statistics: [],
567+
image: {
568+
...product.image,
569+
url: '',
570+
},
571+
}}
572+
format={{
573+
design: ArticleDesign.Review,
574+
display: ArticleDisplay.Showcase,
575+
theme: Pillar.Lifestyle,
576+
}}
577+
ArticleElementComponent={ArticleElementComponent}
578+
/>
579+
</>
580+
);
581+
};

0 commit comments

Comments
 (0)