mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 00:59:29 +00:00
Remove old DragTarget code
This commit is contained in:
parent
6264e80bf5
commit
1d1593c558
2 changed files with 0 additions and 33 deletions
|
|
@ -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;
|
||||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue