Stuff stuff stuff #44
@ -1,6 +1,7 @@
|
||||
import React from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import { useSelector } from "react-redux";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
import { Torrent } from "./torrent";
|
||||
import { Poster } from "./poster";
|
||||
@ -17,11 +18,18 @@ export const TorrentGroup = ({ torrentKey }) => {
|
||||
const title = (torrent) => {
|
||||
switch (torrent.type) {
|
||||
case "movie":
|
||||
return torrent.video.title;
|
||||
return <span>{torrent.video.title}</span>;
|
||||
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:
|
||||
return "Files";
|
||||
return <span>Files</span>;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user