Skip to content

Commit e831b54

Browse files
add format to left col card
1 parent 45a61b4 commit e831b54

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import type { Meta } from '@storybook/react';
2-
import { ArticleDesign, Pillar } from '../lib/articleFormat';
2+
import type { ArticleFormat } from '../lib/articleFormat';
3+
import { ArticleDesign, ArticleDisplay, Pillar } from '../lib/articleFormat';
34
import type { LeftColProductCardProps } from './LeftColProductCard';
45
import { LeftColProductCard } from './LeftColProductCard';
56

7+
const format: ArticleFormat = {
8+
design: ArticleDesign.Standard,
9+
display: ArticleDisplay.Standard,
10+
theme: Pillar.Lifestyle,
11+
};
612
const meta = {
713
component: LeftColProductCard,
814
title: 'Components/LeftColProductCard',
@@ -37,6 +43,7 @@ const sampleProductCard: LeftColProductCardProps = {
3743
value: 'sweet, sour, salty and has an umami-rich profile',
3844
},
3945
],
46+
format,
4047
};
4148

4249
export const Default = () => <LeftColProductCard {...sampleProductCard} />;

0 commit comments

Comments
 (0)