Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
nit: fixed indentation issues.
  • Loading branch information
DeadHeadRussell authored Jan 24, 2017
1 parent f618b4d commit 9f0dc10
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/.stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Item = SortableElement((props) => {
<div className={props.className} style={{
height: props.height
}}>
{props.shouldUseDragHandle && <Handle/>}
{props.shouldUseDragHandle && <Handle/>}
<div className={style.wrapper}>
<span>Item</span> {props.value}
</div>
Expand All @@ -36,15 +36,15 @@ const Item = SortableElement((props) => {
});

const Category = SortableElement((props) => {
return (
<div className={style.category}>
<div className={style.categoryHeader}>
<Handle/>
<span>Category {props.value}</span>
</div>
return (
<div className={style.category}>
<div className={style.categoryHeader}>
<Handle/>
<span>Category {props.value}</span>
</div>
<ListWrapper component={SortableList} className={style.categoryList} items={getItems(5, 59)} shouldUseDragHandle={true} helperClass={style.stylizedHelper} />
</div>
)
</div>
)
});

class ListWrapper extends Component {
Expand Down Expand Up @@ -252,17 +252,17 @@ const ShrinkingSortableList = SortableContainer(({className, isSorting, items, i
});

const NestedSortableList = SortableContainer(({className, items, isSorting, sortableHandlers}) => {
return (
<div className={className} {...sortableHandlers}>
{items.map((value, index) =>
<Category
key={`category-${value}`}
index={index}
value={value}
/>
)}
</div>
);
return (
<div className={className} {...sortableHandlers}>
{items.map((value, index) =>
<Category
key={`category-${value}`}
index={index}
value={value}
/>
)}
</div>
);
});

storiesOf('Basic Configuration', module)
Expand Down Expand Up @@ -310,11 +310,11 @@ storiesOf('Basic Configuration', module)
);
})
.add('Nested Lists', () => {
return (
<div className={style.root}>
<ListWrapper component={NestedSortableList} items={range(4)} shouldUseDragHandle={true} helperClass={style.stylizedHelper} />
</div>
);
return (
<div className={style.root}>
<ListWrapper component={NestedSortableList} items={range(4)} shouldUseDragHandle={true} helperClass={style.stylizedHelper} />
</div>
);
})

storiesOf('Advanced', module)
Expand Down

0 comments on commit 9f0dc10

Please sign in to comment.