mirror of
https://github.com/sct/overseerr.git
synced 2025-09-28 04:52:59 +02:00
feat(ui): add trakt external link (#2367)
* feat(ui): add trakt external link * feat(ui): move trakt to end of list of external links Co-authored-by: Ryan Cohen <ryan@sct.dev>
This commit is contained in:

committed by
GitHub

parent
b4b2acd4fc
commit
4e56bae985
@@ -4,6 +4,7 @@ import ImdbLogo from '../../assets/services/imdb.svg';
|
||||
import PlexLogo from '../../assets/services/plex.svg';
|
||||
import RTLogo from '../../assets/services/rt.svg';
|
||||
import TmdbLogo from '../../assets/services/tmdb.svg';
|
||||
import TraktLogo from '../../assets/services/trakt.svg';
|
||||
import TvdbLogo from '../../assets/services/tvdb.svg';
|
||||
import useLocale from '../../hooks/useLocale';
|
||||
|
||||
@@ -78,6 +79,18 @@ const ExternalLinkBlock: React.FC<ExternalLinkBlockProps> = ({
|
||||
<RTLogo />
|
||||
</a>
|
||||
)}
|
||||
{tmdbId && (
|
||||
<a
|
||||
href={`https://trakt.tv/search/tmdb/${tmdbId}?id_type=${
|
||||
mediaType === 'movie' ? 'movie' : 'show'
|
||||
}`}
|
||||
className="w-8 transition duration-300 opacity-50 hover:opacity-100"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<TraktLogo />
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user