Add tabs in AddTorrent modal

This commit is contained in:
John Furrow
2016-02-15 13:14:38 -08:00
parent 96e008d725
commit ce94ac35d1
15 changed files with 501 additions and 161 deletions

View File

@@ -0,0 +1,35 @@
import Dropzone from 'react-dropzone';
import React from 'react';
const METHODS_TO_BIND = ['handleOpenClick'];
export default class AddTorrents extends React.Component {
constructor() {
super();
this.state = {
files: null
};
METHODS_TO_BIND.forEach((method) => {
this[method] = this[method].bind(this);
});
}
handleFileDrop(files) {
this.setState({files});
}
render() {
return (
<div className="form">
<Dropzone className="form__dropzone dropzone" ref="dropzone" onDrop={this.handleFileDrop}>
Drop some files here,
<span className="dropzone__browse-button">
or click to browse.
</span>
</Dropzone>
</div>
);
}
}