Commit 0ebfbf61 authored by Patrik Meijer's avatar Patrik Meijer
Browse files

Fix drag preview of part-browser

parent 8b06e02f
......@@ -14,7 +14,6 @@ import {nameSort} from '../../utils/getObjectSorter';
import {treeBeardTheme, getTreeDecorators} from './TreeOverrides';
import PartBrowserItem from './PartBrowserItem';
import PartBrowserDragPreview from './PartBrowserDragPreview';
import getSVGData from '../../utils/getSVGData';
......@@ -231,7 +230,6 @@ class PartBrowser extends SingleConnectedNode {
textAlign: minimized ? 'center' : undefined,
}}
>
<PartBrowserDragPreview scale={scale}/>
<div style={{display: minimized ? 'none' : undefined}}>
{this.tree.children.map(this.buildTreeStructure)}
</div>
......
......@@ -5,7 +5,6 @@ import {DragLayer} from 'react-dnd';
// noinspection JSUnresolvedVariable
import {Samy} from 'react-samy-svg';
import DRAG_TYPES from '../../utils/dragTypes';
import getSVGData from '../../utils/getSVGData';
// DragLayer
function collect(monitor) {
......
/* globals window */
import React, {Component} from 'react';
import PartBrowser from './index';
import PartBrowser, {PartBrowserDragPreview} from './index';
export default class DemoPartBrowser extends Component {
constructor(props) {
......@@ -12,6 +12,7 @@ export default class DemoPartBrowser extends Component {
render() {
return (
<div style={{width: '30%'}}>
<PartBrowserDragPreview scale={1}/>
<PartBrowser
gmeClient={this.gmeClient}
activeNode="/1"
......
export {default} from './PartBrowser';
import PartBrowserDragPreview from './PartBrowserDragPreview';
import PartBrowser from './PartBrowser';
export default PartBrowser;
export {
PartBrowserDragPreview,
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment