diff --git a/client/source/scripts/containers/App.js b/client/source/scripts/containers/App.js index 776e7271..18037667 100644 --- a/client/source/scripts/containers/App.js +++ b/client/source/scripts/containers/App.js @@ -1,4 +1,4 @@ -import { connect } from 'react-redux'; +import {connect} from 'react-redux'; import React from 'react'; import ActionBar from '../containers/ActionBar'; @@ -8,50 +8,8 @@ import rootSelector from '../selectors/rootSelector'; import TorrentList from '../containers/TorrentList'; import TorrentListHeader from '../components/torrent-list/TorrentListHeader'; -const methodsToBind = [ - // 'componentWillMount', - // 'componentWillUnmount', - // 'getTransferData', - // 'getTorrents' -]; - export default class FloodApp extends React.Component { - constructor() { - super(); - - this.state = { - clientDataFetchInterval: null, - count: 0, - torrentFetchInterval: null - }; - - methodsToBind.forEach((method) => { - this[method] = this[method].bind(this); - }); - } - // - // componentWillMount() { - // let getTorrents = this.getTorrents; - // let getTransferData = this.getTransferData; - // - // this.state.torrentFetchInterval = setInterval(function() { - // getTorrents(); - // }, 5000); - // - // this.state.clientDataFetchInterval = setInterval(function() { - // getTransferData(); - // }, 5000); - // - // this.getTorrents(); - // this.getTransferData(); - // } - // - // componentWillUnmount() { - // clearInterval(this.state.torrentFetchInterval); - // clearInterval(this.state.clientDataFetchInterval); - // } - render() { return (
@@ -65,24 +23,4 @@ export default class FloodApp extends React.Component { ); } - // render() { - // return ( - //
- // - //
- // - // - //
- // - //
- // ); - // } - } - -// export default connect(rootSelector)(FloodApp);