Remove old DragTarget code

This commit is contained in:
Jordan Eldredge 2017-03-24 18:08:52 +00:00
parent 6264e80bf5
commit 1d1593c558
2 changed files with 0 additions and 33 deletions

View file

@ -1,32 +0,0 @@
import React from "react";
class DragTarget extends React.Component {
constructor(props) {
super(props);
this.handleDrop = this.handleDrop.bind(this);
}
supress(e) {
e.stopPropagation();
e.preventDefault();
}
handleDrop(e) {
this.supress(e);
this.props.handleFiles(e.dataTransfer.files);
}
render() {
return (
<div
onDragEnter={this.supress}
onDragOver={this.supress}
onDrop={this.handleDrop}
>
{this.props.children}
</div>
);
}
}
export default DragTarget;

View file

@ -9,7 +9,6 @@ import Balance from "./Balance";
import Close from "./Close";
import ClutterBar from "./ClutterBar";
import ContextMenu from "./ContextMenu";
//import DragTarget from './DragTarget';
import Eject from "./Eject";
import EqToggleButton from "./EqToggleButton";
import Kbps from "./Kbps";