Skip to content

Commit

Permalink
refactor(storybook):unordered list minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Sourtzis authored and tiberiuichim committed Mar 10, 2022
1 parent fecee27 commit df2b727
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/ui/List/UnorderedList.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,7 @@ function UnorderedList(animated, divided, horizontal, items) {
>
{items &&
items.map((item, index) => (
<List.Item key={index}>
{item.content}
<List.List role="list">
{item.subList &&
item.subList.map((sub, subIndex) => (
<List.Item key={subIndex} as="a" role="listitem">
{sub.content}
</List.Item>
))}
</List.List>
</List.Item>
<List.Item key={index}>{item.content}</List.Item>
))}
</List>
);
Expand All @@ -80,25 +70,18 @@ Default.args = {
{
header: 'header 1',
content: 'Content 1',
subList: [],
},
{
header: 'header 2',
content: 'Content 2',
subList: [],
},
{
header: 'header 3',
content: 'Content 3',
subList: [],
},
{
header: 'header 4',
content: 'Content 4',
subList: [
{ header: 'Sub header 1', content: 'content' },
{ header: 'Sub header ', content: 'content' },
],
},
],
};

0 comments on commit df2b727

Please sign in to comment.