diff --git a/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-DefaultTheme-light-chromium-linux.png b/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-DefaultTheme-light-chromium-linux.png index 350d48613..2d95e2a72 100644 Binary files a/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-DefaultTheme-light-chromium-linux.png and b/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-DefaultTheme-light-chromium-linux.png differ diff --git a/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-DefaultTheme-light-webkit-linux.png b/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-DefaultTheme-light-webkit-linux.png index 7d0d4fd0a..e8120ddf1 100644 Binary files a/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-DefaultTheme-light-webkit-linux.png and b/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-DefaultTheme-light-webkit-linux.png differ diff --git a/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-GreyTheme-light-chromium-linux.png b/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-GreyTheme-light-chromium-linux.png index def960b6b..6504e22fc 100644 Binary files a/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-GreyTheme-light-chromium-linux.png and b/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-GreyTheme-light-chromium-linux.png differ diff --git a/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-GreyTheme-light-webkit-linux.png b/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-GreyTheme-light-webkit-linux.png index 4ae71d4b3..85edacbb9 100644 Binary files a/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-GreyTheme-light-webkit-linux.png and b/src/blocks/PromoFeaturesBlock/__snapshots__/PromoFeaturesBlock.visual.test.tsx-snapshots/PromoFeaturesBlock-render-stories-GreyTheme-light-webkit-linux.png differ diff --git a/src/blocks/PromoFeaturesBlock/__stories__/PromoFeaturesBlock.stories.tsx b/src/blocks/PromoFeaturesBlock/__stories__/PromoFeaturesBlock.stories.tsx index 342d3e1c3..964a41ff7 100644 --- a/src/blocks/PromoFeaturesBlock/__stories__/PromoFeaturesBlock.stories.tsx +++ b/src/blocks/PromoFeaturesBlock/__stories__/PromoFeaturesBlock.stories.tsx @@ -1,7 +1,6 @@ import {Meta, StoryFn} from '@storybook/react'; -import {yfmTransform} from '../../../../.storybook/utils'; -import {PageConstructor} from '../../../containers/PageConstructor'; +import {blockTransform} from '../../../../.storybook/utils'; import {PromoFeaturesBlockModel, PromoFeaturesProps} from '../../../models'; import PromoFeaturesBlock from '../PromoFeaturesBlock'; @@ -15,35 +14,25 @@ export default { }, } as Meta; -const DefaultTemplate: StoryFn = (args) => ( - -); +const DefaultTemplate: StoryFn = (args) => { + const transformedArgs = blockTransform(args) as PromoFeaturesProps; + return ( +
+ +
+ ); +}; export const DefaultTheme = DefaultTemplate.bind({}); export const GreyTheme = DefaultTemplate.bind({}); -const DefaultArgs = { - ...data.common, - description: yfmTransform(data.common.description), -}; +const DefaultArgs = data.common; DefaultTheme.args = { ...DefaultArgs, ...data.defaultTheme.content, - items: data.defaultTheme.content.items.map((item) => { - return { - ...item, - text: yfmTransform(item.text), - }; - }), } as PromoFeaturesProps; GreyTheme.args = { ...DefaultArgs, ...data.greyTheme.content, - items: data.greyTheme.content.items.map((item) => { - return { - ...item, - text: yfmTransform(item.text), - }; - }), } as PromoFeaturesProps;