fixed styling issues

This commit is contained in:
Alberto Miranda
2017-03-22 22:27:03 -03:00
parent a70c4d1bf2
commit a6c53d06d2
2 changed files with 3 additions and 4 deletions

View File

@@ -50,5 +50,4 @@ class FolderWatcher {
} }
} }
module.exports = FolderWatcher module.exports = FolderWatcher

View File

@@ -115,7 +115,7 @@ class PreferencesPage extends React.Component {
className='control' className='control'
checked={this.props.state.unsaved.prefs.autoAddTorrents} checked={this.props.state.unsaved.prefs.autoAddTorrents}
label={'Enable'} label={'Enable'}
onCheck={(e, value) => {this.handleAutoAddTorrentsChange(e, value)}} onCheck={(e, value) => { this.handleAutoAddTorrentsChange(e, value) }}
/> />
</Preference> </Preference>
) )
@@ -124,7 +124,7 @@ class PreferencesPage extends React.Component {
handleAutoAddTorrentsChange (e, isChecked) { handleAutoAddTorrentsChange (e, isChecked) {
const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath
if (isChecked && !torrentsFolderPath) { if (isChecked && !torrentsFolderPath) {
alert('Select a torrents folder first.') alert('Select a torrents folder first.') // eslint-disable-line
e.preventDefault() e.preventDefault()
return return
} }
@@ -136,7 +136,7 @@ class PreferencesPage extends React.Component {
const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath
const value = torrentsFolderPath || 'Path to be watched.' const value = torrentsFolderPath || 'Path to be watched.'
const description = 'Torrent files saved to this folder will be automatically added to the list.' const description = 'Torrent files saved to this folder will be automatically added.'
return ( return (
<Preference> <Preference>