Move torrent details to modal

This commit is contained in:
John Furrow
2016-05-07 22:14:29 -07:00
parent 2eac7fb035
commit 4eadd2180c
27 changed files with 559 additions and 529 deletions

View File

@@ -110,16 +110,17 @@ export default class AddTorrents extends React.Component {
render() {
let tabs = {
'speed-limit': {
content: (
<SettingsSpeedLimit onSettingsChange={this.handleSettingsChange}
settings={this.state.settings} />
),
content: SettingsSpeedLimit,
props: {
onSettingsChange: this.handleSettingsChange,
settings: this.state.settings
},
label: 'Speed Limits'
}
};
return (
<Modal actions={this.getActions()} classNames="modal--large"
<Modal actions={this.getActions()} size="large"
heading="Settings" orientation="vertical" dismiss={this.props.dismiss}
tabs={tabs} />
);