Stuff stuff stuff #44
@ -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>;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user