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:
parent
3bd51765b8
commit
c9ecdac4f2
@ -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 && (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user