Skip to content

Commit

Permalink
chore: use unstable prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Aug 6, 2020
1 parent 80fae77 commit e5d29a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions packages/react/src/components/TreeView/TreeView-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
text,
withKnobs,
} from '@storybook/addon-knobs';
import TreeView, { TreeNode } from '../TreeView';
import UnstableTreeView, { TreeNode } from '../TreeView';

const sizes = {
default: 'default',
Expand Down Expand Up @@ -250,8 +250,10 @@ function renderTree({ nodes, withIcons = false }) {
storiesOf('TreeView', module)
.addDecorator(withKnobs)
.add('default', () => (
<TreeView {...props()}>{renderTree({ nodes })}</TreeView>
<UnstableTreeView {...props()}>{renderTree({ nodes })}</UnstableTreeView>
))
.add('with icons', () => (
<TreeView {...props()}>{renderTree({ nodes, withIcons: true })}</TreeView>
<UnstableTreeView {...props()}>
{renderTree({ nodes, withIcons: true })}
</UnstableTreeView>
));
10 changes: 5 additions & 5 deletions packages/react/src/components/TreeView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/

import TreeView from './TreeView';
import TreeNode from './TreeNode';
import UnstableTreeView from './TreeView';
import UnstableTreeNode from './TreeNode';

TreeView.TreeNode = TreeNode;
UnstableTreeView.TreeNode = UnstableTreeNode;

export { TreeNode };
export default TreeView;
export { UnstableTreeNode as TreeNode };
export default UnstableTreeView;

0 comments on commit e5d29a1

Please sign in to comment.