diff --git a/app/components/ReleasePoster/PosterWithStuff.tsx b/app/components/ReleasePoster/PosterWithStuff.tsx index cf4c7a7..3af1bce 100644 --- a/app/components/ReleasePoster/PosterWithStuff.tsx +++ b/app/components/ReleasePoster/PosterWithStuff.tsx @@ -1,6 +1,5 @@ import Link from "next/link"; import { Poster } from "./Poster"; -import { Chip } from "../Chip/Chip"; import { ReleaseChips } from "./Chips"; const profile_lists = { @@ -71,7 +70,7 @@ export const PosterWithStuff = (props: { if (props.genres) { const genres_array = props.genres.split(","); genres_array.forEach((genre) => { - genres.push(genre); + genres.push(genre.trim()); }); } diff --git a/app/pages/Related.tsx b/app/pages/Related.tsx index beb5d05..98cbfb0 100644 --- a/app/pages/Related.tsx +++ b/app/pages/Related.tsx @@ -5,11 +5,25 @@ import { useState, useEffect } from "react"; import { useScrollPosition } from "#/hooks/useScrollPosition"; import { useUserStore } from "../store/auth"; import { ENDPOINTS } from "#/api/config"; -import { ReleaseLink169Related } from "#/components/ReleaseLink/ReleaseLink.16_9Related"; +// import { ReleaseLink169Related } from "#/components/ReleaseLink/ReleaseLink.16_9Related"; import { useSWRfetcher } from "#/api/utils"; +import { Card } from "flowbite-react"; +import { Poster } from "#/components/ReleasePoster/Poster"; +import { ReleaseChips } from "#/components/ReleasePoster/Chips"; +import { PosterWithStuff } from "#/components/ReleasePoster/PosterWithStuff"; +import Link from "next/link"; +const profile_lists = { + // 0: "Не смотрю", + 1: { name: "Смотрю", bg_color: "bg-green-500" }, + 2: { name: "В планах", bg_color: "bg-purple-500" }, + 3: { name: "Просмотрено", bg_color: "bg-blue-500" }, + 4: { name: "Отложено", bg_color: "bg-yellow-500" }, + 5: { name: "Брошено", bg_color: "bg-red-500" }, +}; +const YearSeason = ["_", "Зима", "Весна", "Лето", "Осень"]; -export function RelatedPage(props: {id: number|string, title: string}) { +export function RelatedPage(props: { id: number | string; title: string }) { const token = useUserStore((state) => state.token); const getKey = (pageIndex: number, previousPageData: any) => { @@ -52,22 +66,114 @@ export function RelatedPage(props: {id: number|string, title: string}) { Франшиза {props.title} - {content && content.length > 0 ? ( + {content && content.length > 0 ?
+ {release.title_ru} +
+ )} + {release.title_original && ( ++ {release.title_original} +
+ )} + {settings.showDescription && release.description && ( ++ {release.description} +
+ )} +В франшизе пока ничего нет...