diff --git a/src/app/torrent-page.js b/src/app/torrent-page.js index 92c190f..23f48d4 100644 --- a/src/app/torrent-page.js +++ b/src/app/torrent-page.js @@ -259,7 +259,6 @@ export default class TorrentPage extends Page { if(this.props.hash != hash) return; - console.log(progress) this.setState({downloadProgress: progress}) } window.torrentSocket.on('downloadProgress', this.downloadProgress); diff --git a/src/app/torrent.js b/src/app/torrent.js index cf6f217..c319113 100644 --- a/src/app/torrent.js +++ b/src/app/torrent.js @@ -3,6 +3,9 @@ import formatBytes from './format-bytes' import {ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; +import Spinner24 from './images/spinner_24.gif' +import LinearProgress from 'material-ui/LinearProgress'; + const contentIcon = (type, category) => { if(category == 'xxx') { @@ -150,98 +153,195 @@ const contentIcon = (type, category) => { }; export {contentIcon} -export default (props) => { - -const torrent = props.torrent; -return ( -