diff --git a/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx b/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx index 0839a8e..6c3a126 100644 --- a/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx +++ b/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx @@ -1,5 +1,5 @@ import { FC, useEffect, useMemo, useState } from 'react'; -import { Cast, Download, ListVideo, Loader, Magnet, Play, TrafficCone } from 'lucide-react'; +import { Bookmark, Cast, Download, ListVideo, Loader, Magnet, Play, TrafficCone } from 'lucide-react'; import { providers } from '@/components/Preview/components/Torrents/constants'; import { useCastMagnet, usePrefix } from '@/components/Preview/components/Torrents/hooks/useMagnetHosts'; @@ -45,7 +45,7 @@ const Actions: FC = ({ torrent, title, provider, show }) => { const fetchMagnet = useMagnet(torrent); - const { pin, isPinned, savedMagnet, rememberMagnet } = usePinnedTorrents(); + const { pin, toggle, isPinned, savedMagnet, rememberMagnet } = usePinnedTorrents(); const key = torrentKey(torrent); const pinned = isPinned(key); @@ -115,6 +115,14 @@ const Actions: FC = ({ torrent, title, provider, show }) => { )} + - ); - }; - // server sort (size/seeds) refetches in a new order, so drop the client-side S:E sort const handleChangeSort = (next: Sort) => { setEpisodesSort(null); @@ -128,22 +104,16 @@ const TorrentsTable: FC = ({ title, torrents, show, sort, sortable, provi return ( - - - {renderPin(torrent, true)} - - {torrent.title} {isSeries && torrent.episodes && `[${torrent.episodes}]`}{' '} - {torrent.quality && `[${torrent.quality}]`} - + + + {torrent.title} {isSeries && torrent.episodes && `[${torrent.episodes}]`}{' '} + {torrent.quality && `[${torrent.quality}]`} - + - - {renderPin(torrent)} - {torrent.title} - + {torrent.title} {isSeries && (