diff --git a/examples/storybooks/__snapshots__/storyshots.test.js.snap b/examples/storybooks/__snapshots__/storyshots.test.js.snap index 1595e83a..30269355 100644 --- a/examples/storybooks/__snapshots__/storyshots.test.js.snap +++ b/examples/storybooks/__snapshots__/storyshots.test.js.snap @@ -724,347 +724,6 @@ exports[`Storyshots Advanced Drag out to remove 1`] = ` `; -exports[`Storyshots Advanced Expand with lazy loading of child nodes 1`] = ` -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Egg - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Spaceship - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
- - - VIEW SOURCE → - -
-`; - exports[`Storyshots Advanced Playing with generateNodeProps 1`] = `
diff --git a/examples/storybooks/expand-lazy-loading.js b/examples/storybooks/expand-lazy-loading.js deleted file mode 100644 index 39f102dc..00000000 --- a/examples/storybooks/expand-lazy-loading.js +++ /dev/null @@ -1,40 +0,0 @@ -import React, { Component } from 'react'; -import SortableTree from '../../src'; -// In your own app, you would need to use import styles once in the app -// import 'react-sortable-tree/styles.css'; - -export default class App extends Component { - constructor(props) { - super(props); - - this.state = { - treeData: [ - { title: 'Chicken', expanded: true, children: [{ title: 'Egg' }] }, - { - title: 'Spaceship', - children: ({ done }) => { - setTimeout(() => { - done([ - { title: 'Orbiter' }, - { title: 'Main Engines' }, - { title: 'External Tank' }, - { title: 'Solid Rocket Boosters' }, - ]); - }, 1000); - }, - }, - ], - }; - } - - render() { - return ( -
- this.setState({ treeData })} - /> -
- ); - } -} diff --git a/examples/storybooks/index.js b/examples/storybooks/index.js index a4592f09..4de12318 100644 --- a/examples/storybooks/index.js +++ b/examples/storybooks/index.js @@ -15,7 +15,6 @@ import ThemesExample from './themes'; import TouchSupportExample from './touch-support'; import TreeDataIOExample from './tree-data-io'; import TreeToTreeExample from './tree-to-tree'; -import ExpandLazyLoadingExample from './expand-lazy-loading'; import './generic.css'; import { handleClick, SANDBOX_URL } from './sandbox-utils'; @@ -75,7 +74,4 @@ storiesOf('Advanced', module) ) .add('Drag out to remove', () => wrapWithSource(, 'drag-out-to-remove.js') - ) - .add('Expand with lazy loading of child nodes', () => - wrapWithSource(, 'expand-lazy-loading.js') );