ссылка на именовании

This commit is contained in:
Alexey Kasyanchuk
2017-01-22 22:04:39 +03:00
parent b8430a036b
commit e2611706b5

View File

@ -10,10 +10,23 @@ return (
<div> <div>
<ListItem <ListItem
onClick={() => window.router('/torrent/' + torrent.hash)} onClick={() => window.router('/torrent/' + torrent.hash)}
primaryText={<span className='break-word' style={{ primaryText={
color: torrent.contentCategory != 'xxx' ? 'black' : 'grey' <a href={'/torrent/' + torrent.hash} ref={(node) => {
}}>{torrent.name}</span>} if(node)
node.onclick = () => { return false }
}}>
<span className='break-word' style={{
color: torrent.contentCategory != 'xxx' ? 'black' : 'grey'
}}>
{torrent.name}
</span>
</a>
}
secondaryText={ secondaryText={
<a href={'/torrent/' + torrent.hash} ref={(node) => {
if(node)
node.onclick = () => { return false }
}}>
<div className='column' style={{height: 'auto', whiteSpace: 'normal'}}> <div className='column' style={{height: 'auto', whiteSpace: 'normal'}}>
<div> <div>
{ {
@ -39,7 +52,8 @@ return (
null null
} }
</div> </div>
} </a>
}
leftIcon={ leftIcon={
(() => { (() => {
switch(torrent.contentType) switch(torrent.contentType)