diff --git a/src/client/components/ComicDetail/AcquisitionPanel.tsx b/src/client/components/ComicDetail/AcquisitionPanel.tsx index 6174d7c..40bfdab 100644 --- a/src/client/components/ComicDetail/AcquisitionPanel.tsx +++ b/src/client/components/ComicDetail/AcquisitionPanel.tsx @@ -323,52 +323,45 @@ export const AcquisitionPanel = ( {!isNil(airDCPPSearchInstance) && !isEmpty(airDCPPSearchInfo) && !isNil(hubs) && ( -
-
-
-
-
-
-
- {hubs.map((value, idx) => ( - - {value.identity.name} - - ))} -
-
-
- Query: - - {airDCPPSearchInfo.query.pattern} +
+
+
+
+
+ {hubs.map((value, idx) => ( + + {value.identity.name} -
-
- Extensions: - - {airDCPPSearchInfo.query.extensions.join(", ")} - -
-
- File type: - - {airDCPPSearchInfo.query.file_type} - -
-
-
-
+ ))} +
+ + +
+ Query: + + {airDCPPSearchInfo.query.pattern} + +
+
+ Extensions: + + {airDCPPSearchInfo.query.extensions.join(", ")} + +
+
+ File type: + + {airDCPPSearchInfo.query.file_type} + +
+
-
-
-
-
-
Search Instance: {airDCPPSearchInstance.id}
-
Owned by {airDCPPSearchInstance.owner}
-
Expires in: {airDCPPSearchInstance.expires_in}
-
-
-
+
+
+
Search Instance: {airDCPPSearchInstance.id}
+
Owned by {airDCPPSearchInstance.owner}
+
Expires in: {airDCPPSearchInstance.expires_in}
+
)} @@ -376,8 +369,8 @@ export const AcquisitionPanel = ( {/* AirDC++ results */}
{!isNil(airDCPPSearchResults) && !isEmpty(airDCPPSearchResults) ? ( -
- +
+
- + {map(airDCPPSearchResults, ({ result }, idx) => { return ( - diff --git a/src/client/components/ComicDetail/ActionMenu/Menu.tsx b/src/client/components/ComicDetail/ActionMenu/Menu.tsx index aede5df..2a68361 100644 --- a/src/client/components/ComicDetail/ActionMenu/Menu.tsx +++ b/src/client/components/ComicDetail/ActionMenu/Menu.tsx @@ -70,27 +70,28 @@ export const Menu = (props): ReactElement => { } }; const customStyles = { + placeholder: (base) => ({ + ...base, + color: "black", + }), option: (base, { data, isDisabled, isFocused, isSelected }) => { return { ...base, - backgroundColor: isFocused ? "gray" : "black", + backgroundColor: isFocused ? "gray" : "rgb(156, 163, 175)", }; }, control: (base) => ({ ...base, - backgroundColor: "black", - border: "1px solid #CCC", + backgroundColor: "rgb(156, 163, 175)", + color: "black", + border: "1px solid rgb(156, 163, 175)", }), }; return (
@@ -394,13 +387,15 @@ export const AcquisitionPanel = (
@@ -415,7 +410,15 @@ export const AcquisitionPanel = (
{!isNil(result.dupe) ? ( - Dupe + + + + + + + Dupe + + ) : null} {/* Nicks */} @@ -468,9 +471,9 @@ export const AcquisitionPanel = (
+
diff --git a/src/client/components/ComicDetail/RawFileDetails.tsx b/src/client/components/ComicDetail/RawFileDetails.tsx index 4ffddbe..25fcf59 100644 --- a/src/client/components/ComicDetail/RawFileDetails.tsx +++ b/src/client/components/ComicDetail/RawFileDetails.tsx @@ -7,7 +7,6 @@ import { format, parseISO } from "date-fns"; export const RawFileDetails = (props): ReactElement => { const { rawFileDetails, inferredMetadata, created_at, updated_at } = props.data; - const PaperClipIcon = () => <>; return ( <>
@@ -89,52 +88,7 @@ export const RawFileDetails = (props): ReactElement => {
Actions
-
-
    -
  • -
    -
    - -
  • -
  • -
    - {/* Read comic button */} - -
    - -
  • -
-
+
{props.children}
@@ -169,4 +123,5 @@ RawFileDetails.propTypes = { created_at: PropTypes.string, updated_at: PropTypes.string, }), + children: PropTypes.any, }; diff --git a/src/client/components/ComicDetail/TabControls.tsx b/src/client/components/ComicDetail/TabControls.tsx index 1201998..219a155 100644 --- a/src/client/components/ComicDetail/TabControls.tsx +++ b/src/client/components/ComicDetail/TabControls.tsx @@ -24,21 +24,22 @@ export const TabControls = (props): ReactElement => { onClick={() => setActive(id)} > {/* Downloads tab and count badge */} - {/* - {id === 6 && !isNil(acquisition.directconnect) ? ( - - - - {acquisition.directconnect.downloads.length} + <> + {id === 6 && !isNil(acquisition.directconnect) ? ( + + {/* download count */} + + + {acquisition.directconnect.downloads.length} + + + - - ) : ( - {icon} - )} - {name} - */} - {icon} - {name} + ) : ( + {icon} + )} + {name} + ))} diff --git a/src/client/components/Library/Library.tsx b/src/client/components/Library/Library.tsx index 4cca3c5..fa95938 100644 --- a/src/client/components/Library/Library.tsx +++ b/src/client/components/Library/Library.tsx @@ -4,6 +4,7 @@ import { useNavigate } from "react-router-dom"; import { isEmpty, isNil, isUndefined } from "lodash"; import MetadataPanel from "../shared/MetadataPanel"; import T2Table from "../shared/T2Table"; +import SearchBar from "../Library/SearchBar"; import ellipsize from "ellipsize"; import { useQuery, keepPreviousData } from "@tanstack/react-query"; import axios from "axios"; @@ -20,6 +21,7 @@ export const Library = (): ReactElement => { // Default page state // offset: 0 const [offset, setOffset] = useState(0); + const [searchResults, setSearchResults] = useState([]); // Method to fetch paginated issues const fetchIssues = async (searchQuery, offset, type) => { @@ -216,6 +218,7 @@ export const Library = (): ReactElement => { {!isUndefined(searchResults?.hits) ? (
+ { const handleSubmit = useCallback((e) => { - // dispatch( // searchIssue( // { // query: { @@ -22,7 +21,6 @@ export const SearchBar = (): ReactElement => { // trigger: "libraryPage", // }, // ), - // ); }, []); return (
{
{/* Search bar */}
- - {/* pagination controls */}
Page {pageIndex} of {Math.ceil(totalPages / pageSize)}