Skip to content

Commit f33613b

Browse files
committed
fix the demo to pass tests
1 parent b7acc53 commit f33613b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
import React from 'react';
2-
import { SortableContainer } from '../../src/index.js';
2+
import { sortable, SortableContainer } from '../../src/index.js';
33

4-
export default SortableContainer;
4+
@sortable
5+
class DemoContainerItem extends React.Component {
6+
render() {
7+
return (
8+
<SortableContainer {...this.props}>
9+
{this.props.children}
10+
</SortableContainer>
11+
);
12+
}
13+
}
514

15+
export default DemoContainerItem;

0 commit comments

Comments
 (0)