Add the torrent URL in the torrent button

This allows us to copy the link without clicking on the button.
This commit is contained in:
Grégoire Delattre 2020-04-09 11:01:59 +02:00
parent 3bd51765b8
commit c9ecdac4f2

View File

@ -109,7 +109,11 @@ export const TorrentsButton = ({ torrents, search, searching, url }) => {
return ( return (
<Dropdown.Item <Dropdown.Item
key={index} key={index}
onClick={() => dispatch(addTorrent(e.torrent))} href={e.torrent.result.url}
onClick={(event) => {
event.preventDefault();
dispatch(addTorrent(e.torrent));
}}
> >
{e.quality} {e.quality}
{e.size !== 0 && ( {e.size !== 0 && (