Stuff stuff stuff #44

Merged
PouuleT merged 24 commits from update-node into master 2021-08-30 12:59:08 +00:00
Showing only changes of commit 20ce0eaa99 - Show all commits

View File

@ -1,6 +1,7 @@
import React from "react"; import React from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
import { Link } from "react-router-dom";
import { Torrent } from "./torrent"; import { Torrent } from "./torrent";
import { Poster } from "./poster"; import { Poster } from "./poster";
@ -17,11 +18,18 @@ export const TorrentGroup = ({ torrentKey }) => {
const title = (torrent) => { const title = (torrent) => {
switch (torrent.type) { switch (torrent.type) {
case "movie": case "movie":
return torrent.video.title; return <span>{torrent.video.title}</span>;
case "episode": case "episode":
return torrent.video.show_title; return (
<Link
className="link-unstyled"
to={`/shows/details/${torrent.video.show_imdb_id}`}
>
{torrent.video.show_title}
</Link>
);
default: default:
return "Files"; return <span>Files</span>;
} }
}; };