Skip to content

Commit 0dcc27b

Browse files
committed
Make examples import from index
1 parent 2e64045 commit 0dcc27b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/src/js/BasicExample.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import Tree from '../../../src/js/CheckboxTree';
3+
import CheckboxTree from '../../../src/index';
44

55
const nodes = [
66
{
@@ -114,7 +114,7 @@ class BasicExample extends React.Component {
114114
const { checked, expanded } = this.state;
115115

116116
return (
117-
<Tree
117+
<CheckboxTree
118118
checked={checked}
119119
expanded={expanded}
120120
nodes={nodes}

examples/src/js/PessimisticToggleExample.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import Tree from '../../../src/js/CheckboxTree';
3+
import CheckboxTree from '../../../src/index';
44

55
const nodes = [
66
{
@@ -114,7 +114,7 @@ class PessimisticToggleExample extends React.Component {
114114
const { checked, expanded } = this.state;
115115

116116
return (
117-
<Tree
117+
<CheckboxTree
118118
checked={checked}
119119
expanded={expanded}
120120
nodes={nodes}

0 commit comments

Comments
 (0)