Use a forked version of the react-treebeard

This commit is contained in:
igor 2017-07-01 13:46:53 +03:00
parent 2980693581
commit 3e315bb73e
3 changed files with 8 additions and 4 deletions

View File

@ -33,8 +33,8 @@
"react-komposer": "^2.0.0",
"react-modal": "^1.7.6",
"react-split-pane": "^0.1.63",
"react-treebeard": "^1.1.4",
"redux": "^3.6.0"
"redux": "^3.6.0",
"storybook-react-treebeard": "^1.1.5"
},
"devDependencies": {
"enzyme": "^2.8.2"

View File

@ -1,10 +1,12 @@
import { Treebeard } from 'react-treebeard';
import reactTreebeard from 'storybook-react-treebeard';
import PropTypes from 'prop-types';
import React from 'react';
import treeNodeTypes from './tree_node_type';
import treeDecorators from './tree_decorators';
import treeStyle from './tree_style';
const { Treebeard } = reactTreebeard;
const namespaceSeparator = '@';
function createNodeKey({ namespaces, type }) {

View File

@ -1,9 +1,11 @@
import { decorators } from 'react-treebeard';
import reactTreebeard from 'storybook-react-treebeard';
import { IoFolder, IoDocumentText, IoCode } from 'react-icons/lib/io';
import React from 'react';
import PropTypes from 'prop-types';
import treeNodeTypes from './tree_node_type';
const { decorators } = reactTreebeard;
const iconsColor = '#7d8890';
const iconsMap = {