Skip to content

Commit

Permalink
refactor(UnorderedList): update list as ul, list items as li and add …
Browse files Browse the repository at this point in the history
…container to strory
  • Loading branch information
tarantilis committed Apr 11, 2022
1 parent ed95e4d commit 2c096e1
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions src/ui/List/UnorderedList.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { List } from 'semantic-ui-react';
import { List, Container } from 'semantic-ui-react';

export default {
title: 'Components/List/Unordered list',
Expand Down Expand Up @@ -39,17 +39,22 @@ export default {

function UnorderedList(animated, divided, horizontal, items) {
return (
<List
bulleted
animated={animated}
divided={divided}
horizontal={horizontal}
>
{items &&
items.map((item, index) => (
<List.Item key={index}>{item.content}</List.Item>
))}
</List>
<Container>
<List
bulleted
animated={animated}
divided={divided}
horizontal={horizontal}
as="ul"
>
{items &&
items.map((item, index) => (
<List.Item as="li" key={index}>
{item.content}
</List.Item>
))}
</List>
</Container>
);
}

Expand Down

0 comments on commit 2c096e1

Please sign in to comment.