feat(ui): click on torrent size opens torrent files

This commit is contained in:
Alexey Kasyanchuk 2021-06-22 11:56:32 +03:00
parent 8e4940ec52
commit 79f23d00bd

View File

@ -168,6 +168,14 @@ const TorrentInformation = (props) => {
id="torrentSizeId"
primaryText={__('Torrent Size')}
secondaryText={formatBytes(torrent.size)}
onClick={() => {
if(!props.parent)
return
props.parent.setState({
value: 'files'
})
}}
/>
<ListItem
// leftAvatar={<Avatar icon={<EditorInsertChart />} backgroundColor={yellow600} />}