Skip to content

Commit

Permalink
fix: add yfm transform for content storybook theme case (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
qradle-yndx authored Jan 29, 2024
1 parent 56187ad commit e901844
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sub-blocks/Content/__stories__/Content.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const ThemeTemplate: StoryFn<ContentBlockProps & ClassNameProps> = (args) => (
title={data.theme.light.title}
theme={data.theme.light.theme as ContentTheme}
buttons={data.theme.light.buttons as ButtonProps[]}
additionalInfo={data.default.content.additionalInfo}
/>
</div>
<div style={{paddingBottom: '64px', paddingTop: '64px', backgroundColor: '#262626'}}>
Expand All @@ -94,7 +93,6 @@ const ThemeTemplate: StoryFn<ContentBlockProps & ClassNameProps> = (args) => (
title={data.theme.dark.title}
theme={data.theme.dark.theme as ContentTheme}
buttons={data.theme.dark.buttons as ButtonProps[]}
additionalInfo={data.default.content.additionalInfo}
/>
</div>
</div>
Expand Down Expand Up @@ -125,4 +123,5 @@ Centered.args = {

Theme.args = {
...defaultArgs,
additionalInfo: yfmTransform(data.default.content.additionalInfo),
} as ContentBlockProps;

0 comments on commit e901844

Please sign in to comment.