Skip to content

Commit

Permalink
style(list): prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tarantilis committed Mar 8, 2022
1 parent 17bf710 commit 8eb715b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 25 deletions.
14 changes: 2 additions & 12 deletions src/ui/List/DescriptionList.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,9 @@ export default {
},
};

function DescriptionList(
items,
floated,
animated,
divided,
horizontal,
) {
function DescriptionList(items, floated, animated, divided, horizontal) {
return (
<List
animated={animated}
divided={divided}
horizontal={horizontal}
>
<List animated={animated} divided={divided} horizontal={horizontal}>
{items.map((item, index) => (
<List.Item key={index}>
<List.Content>
Expand Down
7 changes: 1 addition & 6 deletions src/ui/List/TableOfContents.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ export default {

function TableOfContents(items, animated, divided, horizontal) {
return (
<List
ordered
animated={animated}
divided={divided}
horizontal={horizontal}
>
<List ordered animated={animated} divided={divided} horizontal={horizontal}>
{items.map((item, index) => (
<List.Item as="a" key={index}>
{item.content}
Expand Down
9 changes: 2 additions & 7 deletions src/ui/Statistic/Statistic.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,9 @@ const Template = (args) => (
<Statistic.Group {...args}>
{args.elements &&
args.elements.map((element, index) => (
<Statistic
key={index}
{...element}
></Statistic>
<Statistic key={index} {...element}></Statistic>
))}
{!args.elements && (
<Statistic {...args}></Statistic>
)}
{!args.elements && <Statistic {...args}></Statistic>}
</Statistic.Group>
);

Expand Down

0 comments on commit 8eb715b

Please sign in to comment.