Skip to content

Commit 9f0dc10

Browse files
Update index.js
nit: fixed indentation issues.
1 parent f618b4d commit 9f0dc10

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/.stories/index.js

+25-25
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Item = SortableElement((props) => {
2727
<div className={props.className} style={{
2828
height: props.height
2929
}}>
30-
{props.shouldUseDragHandle && <Handle/>}
30+
{props.shouldUseDragHandle && <Handle/>}
3131
<div className={style.wrapper}>
3232
<span>Item</span> {props.value}
3333
</div>
@@ -36,15 +36,15 @@ const Item = SortableElement((props) => {
3636
});
3737

3838
const Category = SortableElement((props) => {
39-
return (
40-
<div className={style.category}>
41-
<div className={style.categoryHeader}>
42-
<Handle/>
43-
<span>Category {props.value}</span>
44-
</div>
39+
return (
40+
<div className={style.category}>
41+
<div className={style.categoryHeader}>
42+
<Handle/>
43+
<span>Category {props.value}</span>
44+
</div>
4545
<ListWrapper component={SortableList} className={style.categoryList} items={getItems(5, 59)} shouldUseDragHandle={true} helperClass={style.stylizedHelper} />
46-
</div>
47-
)
46+
</div>
47+
)
4848
});
4949

5050
class ListWrapper extends Component {
@@ -252,17 +252,17 @@ const ShrinkingSortableList = SortableContainer(({className, isSorting, items, i
252252
});
253253

254254
const NestedSortableList = SortableContainer(({className, items, isSorting, sortableHandlers}) => {
255-
return (
256-
<div className={className} {...sortableHandlers}>
257-
{items.map((value, index) =>
258-
<Category
259-
key={`category-${value}`}
260-
index={index}
261-
value={value}
262-
/>
263-
)}
264-
</div>
265-
);
255+
return (
256+
<div className={className} {...sortableHandlers}>
257+
{items.map((value, index) =>
258+
<Category
259+
key={`category-${value}`}
260+
index={index}
261+
value={value}
262+
/>
263+
)}
264+
</div>
265+
);
266266
});
267267

268268
storiesOf('Basic Configuration', module)
@@ -310,11 +310,11 @@ storiesOf('Basic Configuration', module)
310310
);
311311
})
312312
.add('Nested Lists', () => {
313-
return (
314-
<div className={style.root}>
315-
<ListWrapper component={NestedSortableList} items={range(4)} shouldUseDragHandle={true} helperClass={style.stylizedHelper} />
316-
</div>
317-
);
313+
return (
314+
<div className={style.root}>
315+
<ListWrapper component={NestedSortableList} items={range(4)} shouldUseDragHandle={true} helperClass={style.stylizedHelper} />
316+
</div>
317+
);
318318
})
319319

320320
storiesOf('Advanced', module)

0 commit comments

Comments
 (0)