* 🗂️ Added tab icons and styles * 🪑 Styled download panel table * 🪑 Cleaned up the DC++ search results table * 🪑 Many changes to DC++ downloads table * 🏗️ Wired up search with RQ * 🏗️ Changes to ComicDetail section * 🔧 Fixing table styes * 🏗 Fixed the archive ops panel * 🔧 Tweaked Archive ops further * 🃏 Styling the action menu * 🧩 CV Match panel refactor WIP * 🏗️ Refactored the action menu * 🤼 Cleaning up CV match panel * 🏗️ Refactored the scored matches * 🤼 Revamped CV match panel UX * 🖌️ Styling tweaks to the side panel * 🖌️ Cleaned up the form * 🏗️ Refactored the search form * 🤐 Added a uncompress indicator * 🏗️ Fix for encoding # in URIs * 🔧 Fixed # symbol handling in URLs * 🔧 Started work on Edit Metadata panel * 🔎 Added a check for existing uncompressed archives * 🏗️ Settings styling tweaks * 🏗️ Fixed invalidation of archiveOps * 🏗️ Fixed an invalidation query on DC++ download panel * 🏗️ Fixed CV-sourced Volume info panel * 🏗️ Fixed volume group card stacks on Dashboard * 🔍 Fixing CV search page * 🏗️ Refactoring Volume groups and wanted panel * 🏗️ Cleaning up useless files * 🛝 Added keen-slider for pull list * 🏗️ Abstracted heading/subheading into Header * 🏗️ Continued refactoring of PullList, Volumes etc. * 📆 Wired up the datepicker to LoCG pull list
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import { isEmpty, isNil, isUndefined } from "lodash";
|
|
import React, { ReactElement, useContext, useEffect, useState } from "react";
|
|
import { useParams } from "react-router-dom";
|
|
import { getComicBookDetailById } from "../../actions/comicinfo.actions";
|
|
import { ComicDetail } from "../ComicDetail/ComicDetail";
|
|
import { useQuery } from "@tanstack/react-query";
|
|
import { LIBRARY_SERVICE_BASE_URI } from "../../constants/endpoints";
|
|
import axios from "axios";
|
|
|
|
export const ComicDetailContainer = (): ReactElement | null => {
|
|
const { comicObjectId } = useParams<{ comicObjectId: string }>();
|
|
const {
|
|
data: comicBookDetailData,
|
|
isLoading,
|
|
isError,
|
|
} = useQuery({
|
|
queryKey: ["comicBookMetadata"],
|
|
queryFn: async () =>
|
|
await axios({
|
|
url: `${LIBRARY_SERVICE_BASE_URI}/getComicBookById`,
|
|
method: "POST",
|
|
data: {
|
|
id: comicObjectId,
|
|
},
|
|
}),
|
|
});
|
|
|
|
{
|
|
isError && <>Error</>;
|
|
}
|
|
{
|
|
isLoading && <>Loading...</>;
|
|
}
|
|
return (
|
|
comicBookDetailData?.data && <ComicDetail data={comicBookDetailData.data} />
|
|
);
|
|
};
|