refactor torrent-list-controller

This commit is contained in:
Mathias Rasmussen
2018-10-08 01:42:40 +02:00
parent b7fedb1983
commit 60862ec01d
2 changed files with 23 additions and 27 deletions

View File

@@ -1,11 +1,11 @@
const React = require('react')
const ModalOKCancel = require('./modal-ok-cancel')
const {dispatch, dispatcher} = require('../lib/dispatcher')
const { dispatch, dispatcher } = require('../lib/dispatcher')
module.exports = class DeleteAllTorrentsModal extends React.Component {
render () {
const {state: {modal: {deleteData}}} = this.props
const { state: { modal: { deleteData } } } = this.props
const message = deleteData
? 'Are you sure you want to remove all the torrents from the list and delete the data files?'
: 'Are you sure you want to remove all the torrents from the list?'