diff --git a/src/client/components/ComicDetail.tsx b/src/client/components/ComicDetail.tsx
index d516572..a478d50 100644
--- a/src/client/components/ComicDetail.tsx
+++ b/src/client/components/ComicDetail.tsx
@@ -8,8 +8,7 @@ import React, {
import PropTypes from "prop-types";
import { useParams } from "react-router-dom";
import Card from "./Carda";
-import MatchResult from "./MatchResult";
-import ComicVineSearchForm from "./ComicVineSearchForm";
+import { ComicVineMatchPanel } from "./ComicDetail/ComicVineMatchPanel";
import AcquisitionPanel from "./AcquisitionPanel";
import DownloadsPanel from "./DownloadsPanel";
import SlidingPane from "react-sliding-pane";
@@ -118,64 +117,33 @@ export const ComicDetail = ({}: ComicDetailProps): ReactElement => {
const contentForSlidingPanel = {
CVMatches: {
content: () => {
- return (
- <>
- {!isEmpty(comicVineSearchQueryObject) &&
- !isUndefined(comicVineSearchQueryObject) ? (
-
- {!isEmpty(comicVineSearchResults) && (
-
+ );
+ } else {
+ return (
+
- >
- );
+ );
+ }
},
},
editComicArchive: {
diff --git a/src/client/components/ComicDetail/ComicVineMatchPanel.tsx b/src/client/components/ComicDetail/ComicVineMatchPanel.tsx
new file mode 100644
index 0000000..d60fc3e
--- /dev/null
+++ b/src/client/components/ComicDetail/ComicVineMatchPanel.tsx
@@ -0,0 +1,62 @@
+import React, { ReactElement } from "react";
+import { ComicVineSearchForm } from "../ComicVineSearchForm";
+import MatchResult from "../MatchResult";
+import Loader from "react-loader-spinner";
+import { isEmpty } from "lodash";
+
+export const ComicVineMatchPanel = (comicVineData): ReactElement => {
+ const {
+ comicObjectId,
+ comicVineSearchQueryObject,
+ comicVineAPICallProgress,
+ comicVineSearchResults,
+ } = comicVineData.props;
+ console.log(comicVineData);
+ return (
+ <>
+
+
+
+
Searching against:
+
+
+
+ Title
+
+ {
+ comicVineSearchQueryObject.issue.searchParams.searchTerms
+ .name
+ }
+
+
+
+
+
+ Number
+
+ {
+ comicVineSearchQueryObject.issue.searchParams.searchTerms
+ .number
+ }
+
+
+
+
+
+
+
+
+
+
+ {!isEmpty(comicVineSearchResults) && (
+
+ )}
+
+ >
+ );
+};
+
+export default ComicVineMatchPanel;
diff --git a/src/client/components/Library.tsx b/src/client/components/Library.tsx
index 7cf303a..f1c3e21 100644
--- a/src/client/components/Library.tsx
+++ b/src/client/components/Library.tsx
@@ -5,9 +5,9 @@ import { useTable, usePagination } from "react-table";
import { useDispatch, useSelector } from "react-redux";
import { getComicBooks } from "../actions/fileops.actions";
import { isEmpty, isNil } from "lodash";
-import { RawFileDetails } from "./Library/RawFileDetails";
-import { ComicVineDetails } from "./Library/ComicVineDetails";
-import { SearchBar } from "./Library/SearchBar";
+import RawFileDetails from "./Library/RawFileDetails";
+import ComicVineDetails from "./Library/ComicVineDetails";
+import SearchBar from "./Library/SearchBar";
interface IComicBookLibraryProps {
matches?: unknown;
@@ -61,6 +61,7 @@ export const Library = ({}: IComicBookLibraryProps): ReactElement => {
if (!isNil(value.comicvine)) {
return
;
}
+ return
null
;
},
},
{