mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
feat: display release dates for theatrical, digital, and physical release types (#1492)
* feat: display release dates for theatrical, digital, and physical release types * fix(ui): use disc icon for physical release * style: reformat to make new version of Prettier happy
This commit is contained in:
@@ -177,17 +177,12 @@ const TvDetails: React.FC<TvDetailsProps> = ({ tv }) => {
|
||||
: 'US';
|
||||
const seriesAttributes: React.ReactNode[] = [];
|
||||
|
||||
if (
|
||||
data.contentRatings.results.length &&
|
||||
data.contentRatings.results.find(
|
||||
(r) => r.iso_3166_1 === region || data.contentRatings.results[0].rating
|
||||
)
|
||||
) {
|
||||
const contentRating = data.contentRatings.results.find(
|
||||
(r) => r.iso_3166_1 === region
|
||||
)?.rating;
|
||||
if (contentRating) {
|
||||
seriesAttributes.push(
|
||||
<span className="p-0.5 py-0 border rounded-md">
|
||||
{data.contentRatings.results.find((r) => r.iso_3166_1 === region)
|
||||
?.rating || data.contentRatings.results[0].rating}
|
||||
</span>
|
||||
<span className="p-0.5 py-0 border rounded-md">{contentRating}</span>
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user