feat: add genre/studio/network view to Discover results (#1067)

* feat: add genres view to movie/series Discover results

* feat: add studio/network view to movie/series Discover results

* fix: remove with_release_type filter, since it is removing valid/desired results
This commit is contained in:
TheCatLady
2021-03-03 23:22:35 -05:00
committed by GitHub
parent 436523139e
commit f28112f057
18 changed files with 438 additions and 81 deletions

View File

@@ -187,7 +187,19 @@ const MovieDetails: React.FC<MovieDetailsProps> = ({ movie }) => {
}
if (data.genres.length) {
movieAttributes.push(data.genres.map((g) => g.name).join(', '));
movieAttributes.push(
data.genres
.map((g) => (
<Link href={`/discover/movies/genre/${g.id}`} key={`genre-${g.id}`}>
<a className="hover:underline">{g.name}</a>
</Link>
))
.reduce((prev, curr) => (
<>
{prev}, {curr}
</>
))
);
}
return (
@@ -660,7 +672,13 @@ const MovieDetails: React.FC<MovieDetailsProps> = ({ movie }) => {
{intl.formatMessage(messages.studio)}
</span>
<span className="flex-1 text-sm text-right text-gray-400">
{data.productionCompanies[0]?.name}
<Link
href={`/discover/movies/studio/${data.productionCompanies[0].id}`}
>
<a className="hover:underline">
{data.productionCompanies[0].name}
</a>
</Link>
</span>
</div>
)}