Skip to content

Commit 15cb785

Browse files
committed
refactor
1 parent 99c5ee5 commit 15cb785

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/sortable/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import Sortable, { useSortableElement, useSortable } from './Sortable';
44
function Item(props) {
55
// The library needs DOM nodes of every single item we want to reorder
66
// This custom hook will add React ref to the element and then push respective DOM node to the array on nodes on mount
7-
return <div
8-
{...useSortableElement()}
9-
style={{ padding: '10px', background: '#ddd' }}
10-
>{props.children}</div>
7+
return <div {...useSortableElement()}>{props.children}</div>;
118
}
129

1310
function List() {

0 commit comments

Comments
 (0)