Skip to content

Commit

Permalink
leave only one story with slots
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuza committed Jul 16, 2021
1 parent b30e62c commit 6bfb5c7
Showing 1 changed file with 3 additions and 33 deletions.
36 changes: 3 additions & 33 deletions src/atoms/list/List.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const BaseTemplate = (args, { argTypes }) => ({

export const Default = BaseTemplate.bind({})

// with links list
const WithLinksTemplate = (args, { argTypes }) => ({
// with slots list
const WithSlotsTemplate = (args, { argTypes }) => ({
components: { AList, AListItem, ALink },
props: Object.keys(argTypes),
template: `
Expand All @@ -77,34 +77,4 @@ const WithLinksTemplate = (args, { argTypes }) => ({
`
})

export const WithLinks = WithLinksTemplate.bind({})

// with icons list
const WithIconsTemplate = (args, { argTypes }) => ({
components: { AList, AListItem, AIcon, AIconPerson, AIconCheck, AIconPhone },
props: Object.keys(argTypes),
template: `
<a-list
:tag="tag"
:variant="variant"
>
<a-list-item>
<a-icon title="Account icon">
<a-icon-person />
</a-icon>
</a-list-item>
<a-list-item>
<a-icon title="Check icon">
<a-icon-check />
</a-icon>
</a-list-item>
<a-list-item>
<a-icon title="Phone icon">
<a-icon-phone />
</a-icon>
</a-list-item>
</a-list>
`
})

export const WithIcons = WithIconsTemplate.bind({})
export const WithSlots = WithSlotsTemplate.bind({})

0 comments on commit 6bfb5c7

Please sign in to comment.