Material UI: consistent JSX style

This commit is contained in:
DC
2016-08-31 12:57:56 -07:00
parent b98f8476f5
commit e0af554caa
6 changed files with 59 additions and 71 deletions

View File

@@ -33,8 +33,7 @@ class PreferencesPage extends React.Component {
}}
onChange={this.handleDownloadPathChange}
title='Download location'
value={this.props.state.unsaved.prefs.downloadPath}
/>
value={this.props.state.unsaved.prefs.downloadPath} />
</Preference>
)
}
@@ -50,8 +49,7 @@ class PreferencesPage extends React.Component {
className='control'
checked={!this.props.state.unsaved.prefs.openExternalPlayer}
label={'Play torrent media files using WebTorrent'}
onCheck={this.handleOpenExternalPlayerChange}
/>
onCheck={this.handleOpenExternalPlayerChange} />
</Preference>
)
}
@@ -81,8 +79,7 @@ class PreferencesPage extends React.Component {
displayValue={playerName}
onChange={this.handleExternalPlayerPathChange}
title='External player'
value={this.props.state.unsaved.prefs.externalPlayerPath}
/>
value={this.props.state.unsaved.prefs.externalPlayerPath} />
</Preference>
)
}
@@ -110,8 +107,7 @@ class PreferencesPage extends React.Component {
<RaisedButton
className='control'
onClick={this.handleSetDefaultApp}
label='Make WebTorrent the default'
/>
label='Make WebTorrent the default' />
</Preference>
)
}
@@ -127,7 +123,7 @@ class PreferencesPage extends React.Component {
marginRight: 25
}
return (
<div style={style} >
<div style={style}>
<PreferencesSection title='Downloads'>
{this.downloadPathSelector()}
</PreferencesSection>