Skip to content

Commit

Permalink
chore(ui): slight adjustments to Story
Browse files Browse the repository at this point in the history
  • Loading branch information
guoda-puidokaite committed Nov 8, 2024
1 parent b3f9c42 commit ebd3fcb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
10 changes: 4 additions & 6 deletions packages/ui-components/src/components/Grid/Grid.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@ export default {
},
},
decorators: [
(Story, context) => (
(Story) => (
<div className="juno-container jn-px-6 jn-py-6">
<Story {...context} />
<Story />
</div>
),
],
} as Meta<typeof Grid>

const Template: StoryFn<GridProps> = (args, context) => (
<Grid {...args} className={`jn-bg-juno-blue-3 jn-text-juno-grey-blue ${args.className}`}>
{context.args.children}
</Grid>
const Template: StoryFn<GridProps> = (args) => (
<Grid {...args} className={`jn-bg-juno-blue-3 jn-text-juno-grey-blue ${args.className || ""}`} />
)

export const Default = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ export default {
},
},
decorators: [
(Story, context) => {
const { parameters } = context
return (
<div className={`jn-bg-juno-blue-3 jn-text-juno-grey-blue ${parameters.className || ""}`}>
<Story {...parameters} />
</div>
)
},
(Story) => (
<div className="jn-bg-juno-blue-3 jn-text-juno-grey-blue">
<Story />
</div>
),
],
} as Meta<typeof GridRow>

Expand Down

0 comments on commit ebd3fcb

Please sign in to comment.