mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
feat: add button to show collections containing the release on release page
feat: add release in list widget to release page fix: redirecting if viewing not favorites collection for unauthorized user
This commit is contained in:
parent
723b620749
commit
501d3a1705
5 changed files with 117 additions and 61 deletions
|
@ -5,13 +5,12 @@ import { Spinner } from "#/components/Spinner/Spinner";
|
|||
import { useState, useEffect } from "react";
|
||||
import { useScrollPosition } from "#/hooks/useScrollPosition";
|
||||
import { useUserStore } from "../store/auth";
|
||||
import { Button, Card } from "flowbite-react";
|
||||
import { ENDPOINTS } from "#/api/config";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { ReleaseSection } from "#/components/ReleaseSection/ReleaseSection";
|
||||
|
||||
import { CollectionInfoBasics } from "#/components/CollectionInfo/CollectionInfo.Basics";
|
||||
import { CollectionInfoLists } from "#/components/CollectionInfo/CollectionInfoLists";
|
||||
import { InfoLists } from "#/components/InfoLists/InfoLists";
|
||||
import { CollectionInfoControls } from "#/components/CollectionInfo/CollectionInfoControls";
|
||||
|
||||
const fetcher = async (url: string) => {
|
||||
|
@ -101,7 +100,7 @@ export const ViewCollectionPage = (props: { id: number }) => {
|
|||
/>
|
||||
{userStore.token && !isLoading && (
|
||||
<div className="flex flex-col gap-4 w-full max-w-full lg:max-w-[48%]">
|
||||
<CollectionInfoLists
|
||||
<InfoLists
|
||||
completed={collectionInfo.completed_count}
|
||||
planned={collectionInfo.plan_count}
|
||||
abandoned={collectionInfo.dropped_count}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue