Skip to content

Commit

Permalink
fixed deeper subnodes rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
nglgzz committed Jul 17, 2017
1 parent 921c3c3 commit 58ad39e
Show file tree
Hide file tree
Showing 17 changed files with 3,504 additions and 1,432 deletions.
13 changes: 7 additions & 6 deletions .storybook/index.story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { storiesOf } from '@kadira/storybook';
import MindMap from '../src';

const render = (path, editable) => {
const map = require(path);
const map = require(`./maps-parsed/${path}`);

return <MindMap
connections={map.connections}
Expand All @@ -14,10 +14,11 @@ const render = (path, editable) => {
};

storiesOf('maps', module)
.add('devops', () => render('./parsed-maps/programming/devops.json'))
.add('map', () => render('./parsed-maps/map.json'))
.add('python', () => render('./parsed-maps/python.json'));
.add('devops', () => render('programming/devops.json'))
.add('interviews', () => render('programming/programming-interviews.json'))
.add('map', () => render('map.json'))
.add('python', () => render('python.json'));

storiesOf('editable', module)
.add('true', () => render('./parsed-maps/python.json', true))
.add('false', () => render('./parsed-maps/python.json', false));
.add('true', () => render('python.json', true))
.add('false', () => render('python.json', false));
133 changes: 88 additions & 45 deletions .storybook/parsed-maps/map.json → .storybook/maps-parsed/map.json

Large diffs are not rendered by default.

Loading

0 comments on commit 58ad39e

Please sign in to comment.