diff --git a/app/home/[slug]/page.tsx b/app/home/[slug]/page.tsx index 56c6b40..ded7fd9 100644 --- a/app/home/[slug]/page.tsx +++ b/app/home/[slug]/page.tsx @@ -5,6 +5,7 @@ const SectionTitleMapping = { finished: "Завершенные релизы", ongoing: "В эфире", announce: "Анонсированные релизы", + films: "Фильмы", }; export async function generateMetadata({ params }) { diff --git a/app/pages/IndexCategory.tsx b/app/pages/IndexCategory.tsx index 611af41..f79dbf7 100644 --- a/app/pages/IndexCategory.tsx +++ b/app/pages/IndexCategory.tsx @@ -6,12 +6,14 @@ import { useScrollPosition } from "#/hooks/useScrollPosition"; import { useUserStore } from "../store/auth"; import { _FetchHomePageReleases } from "#/api/utils"; import { Button } from "flowbite-react"; +import { useRouter } from "next/navigation"; export function IndexCategoryPage(props) { const token = useUserStore((state) => state.token); const [isLoading, setIsLoading] = useState(true); const [content, setContent] = useState(null); const [page, setPage] = useState(0); + const router = useRouter(); useEffect(() => { async function _loadInitialReleases() { @@ -50,6 +52,15 @@ export function IndexCategoryPage(props) { return ( <> +