Skip to content

Commit

Permalink
fixing LayerItem storybook for radio variant
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejoYarce committed Nov 29, 2024
1 parent 78f8fe7 commit ecf06c4
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/components/Layer/LayerItem/LayerItem.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ const meta = {
layout: 'centered',
},
tags: ['autodocs'],
decorators: [
(Story: any) => (
<RadioGroup name='radio-group'>
<Story />
</RadioGroup>
),
],
} satisfies Meta<typeof LayerItem>

export default meta
Expand All @@ -32,11 +39,6 @@ export const Radio: Story = {
caption: 'Caption',
variant: 'radio',
},
render: (args) => (
<RadioGroup name='radio-group'>
<LayerItem {...args} />
</RadioGroup>
),
}

export const Disabled: Story = {
Expand All @@ -56,11 +58,6 @@ export const RadioDisabeld: Story = {
variant: 'radio',
disabled: true,
},
render: (args) => (
<RadioGroup name='radio-group-'>
<LayerItem {...args} />
</RadioGroup>
),
}

export const NoInfoButton: Story = {
Expand Down

0 comments on commit ecf06c4

Please sign in to comment.