Skip to content

Commit

Permalink
Fix: Updated the storybook of the simple-block
Browse files Browse the repository at this point in the history
  • Loading branch information
wendellguimaraes-tlf committed Jan 10, 2025
1 parent d52e2f0 commit 8a6d11a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/community/__stories__/blocks-story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,18 @@ BlockRow.args = {

type SimpleBlockArgs = {
description: string;
label: string;
};

export const BlockSimple: StoryComponent<SimpleBlockArgs> = ({description}) => {
export const BlockSimple: StoryComponent<SimpleBlockArgs> = ({description, label}) => {
return (
<ResponsiveLayout>
<Box paddingY={24} dataAttributes={{testid: 'simple-block'}}>
<SimpleBlock description={description} image={<Image height={40} src={imgExample} />} />
<SimpleBlock
description={description}
label={label}
image={<Image height={40} src={imgExample} />}
/>
</Box>
</ResponsiveLayout>
);
Expand All @@ -81,6 +86,7 @@ export const BlockSimple: StoryComponent<SimpleBlockArgs> = ({description}) => {
BlockSimple.storyName = 'SimpleBlock';
BlockSimple.args = {
description: 'description',
label: 'label',
};

type InformationBlockArgs = {
Expand Down

0 comments on commit 8a6d11a

Please sign in to comment.