diff --git a/src/client/components/ComicDetail/ComicDetail.tsx b/src/client/components/ComicDetail/ComicDetail.tsx index d2db27c..765d805 100644 --- a/src/client/components/ComicDetail/ComicDetail.tsx +++ b/src/client/components/ComicDetail/ComicDetail.tsx @@ -115,14 +115,16 @@ export const ComicDetail = (data: ComicDetailProps): ReactElement => {
-

Searching for:

- {inferredMetadata.issue ? ( -
- {inferredMetadata.issue.name} - # {inferredMetadata.issue.number} -
- ) : null} +
+

Searching for:

+ {inferredMetadata.issue ? ( + <> + {inferredMetadata.issue.name} + # {inferredMetadata.issue.number} + + ) : null} +
{ comicObjectId={comicObjectId} /> ) : ( - <>{comicvine.scrapingStatus} +
{comicvine.scrapingStatus}
)} diff --git a/src/client/components/ComicDetail/ComicVineSearchForm.tsx b/src/client/components/ComicDetail/ComicVineSearchForm.tsx index 7c08a01..d1c3ae9 100644 --- a/src/client/components/ComicDetail/ComicVineSearchForm.tsx +++ b/src/client/components/ComicDetail/ComicVineSearchForm.tsx @@ -34,84 +34,55 @@ export const ComicVineSearchForm = (data) => { validate={validate} render={({ handleSubmit }) => (
- - + + + Override Search Query + + -
-
-
- - {(props) => ( -

- - - - -

- )} -
-
+ + + {(props) => ( + + )} + +
+
+ + + {(props) => ( + + )} + +
+
+ + + {(props) => ( + + )} +
- -
-
-
- - {(props) => ( -

- - - - -

- )} -
-
- -
- - {(props) => ( -

- - - - -

- )} -
-
-
-
- -
-
-
-
- -
-
-
+
+
)} diff --git a/src/client/components/ComicDetail/MatchResult.tsx b/src/client/components/ComicDetail/MatchResult.tsx index e8dfdf9..8c3f689 100644 --- a/src/client/components/ComicDetail/MatchResult.tsx +++ b/src/client/components/ComicDetail/MatchResult.tsx @@ -27,6 +27,12 @@ export const MatchResult = (props: MatchResultProps) => { }; return ( <> + + + ComicVine Matches + + + {map(props.matchData, (match, idx) => { let issueDescription = ""; if (!isNil(match.description)) { @@ -36,8 +42,9 @@ export const MatchResult = (props: MatchResultProps) => { }, }); } + const bestMatchCSSClass = idx === 0 ? "bg-green-100" : "bg-slate-300"; return ( -
+
{

{match.name}

) : null} -
- {/* score */} - - - - - - {parseInt(match.score, 10)} - + {/* score */} + + + -
+ + {parseInt(match.score, 10)} + +
@@ -111,15 +116,17 @@ export const MatchResult = (props: MatchResultProps) => {
- +
+ +
); })}