eslint fixes
This commit is contained in:
@ -259,24 +259,24 @@ class Search extends Component {
|
|||||||
<div className='row inline w100p pad0-75 search-row' style={{minWidth: '35em', backgroundColor: 'white', paddingTop: 0, paddingBottom: this.searchError ? 17 : 0, margin: 5, borderRadius: 3}}>
|
<div className='row inline w100p pad0-75 search-row' style={{minWidth: '35em', backgroundColor: 'white', paddingTop: 0, paddingBottom: this.searchError ? 17 : 0, margin: 5, borderRadius: 3}}>
|
||||||
{
|
{
|
||||||
((this.searchTorrents && this.searchTorrents.length > 0) || (this.searchFiles && this.searchFiles.length > 0))
|
((this.searchTorrents && this.searchTorrents.length > 0) || (this.searchFiles && this.searchFiles.length > 0))
|
||||||
&&
|
&&
|
||||||
<div style={{width: 25, height: 25, margin: 2, marginRight: 8}}>
|
<div style={{width: 25, height: 25, margin: 2, marginRight: 8}}>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={false}
|
checked={false}
|
||||||
uncheckedIcon={<svg viewBox="0 0 459 459">
|
uncheckedIcon={<svg viewBox="0 0 459 459">
|
||||||
<g>
|
<g>
|
||||||
<path d="M178.5,382.5h102v-51h-102V382.5z M0,76.5v51h459v-51H0z M76.5,255h306v-51h-306V255z"/>
|
<path d="M178.5,382.5h102v-51h-102V382.5z M0,76.5v51h459v-51H0z M76.5,255h306v-51h-306V255z"/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
}
|
}
|
||||||
iconStyle={{fill: '#27ce74'}}
|
iconStyle={{fill: '#27ce74'}}
|
||||||
onCheck={() => {
|
onCheck={() => {
|
||||||
if(window.routerCurrent() !== '/search')
|
if(window.routerCurrent() !== '/search')
|
||||||
window.router('/search')
|
window.router('/search')
|
||||||
}}
|
}}
|
||||||
style={{paddingTop: '0.6em', paddingLeft: '0.2em'}}
|
style={{paddingTop: '0.6em', paddingLeft: '0.2em'}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<TextField
|
<TextField
|
||||||
style={{marginTop: -12}}
|
style={{marginTop: -12}}
|
||||||
|
@ -238,7 +238,7 @@ export default class Torrent extends Component {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
window.routerFix()
|
window.routerFix()
|
||||||
PagesPie.instance().open(TorrentPage, {replace: 'all', hash: torrent.hash, peer: torrent.peer})
|
PagesPie.instance().open(TorrentPage, {replace: 'all', hash: torrent.hash, peer: torrent.peer})
|
||||||
}}
|
}}
|
||||||
primaryText={
|
primaryText={
|
||||||
|
Reference in New Issue
Block a user