import React, { useCallback } from "react"; import { Form, Field } from "react-final-form"; import Collapsible from "react-collapsible"; import { fetchComicVineMatches } from "../actions/fileops.actions"; import { useDispatch } from "react-redux"; /** * Component for performing search against ComicVine * * @component * @example * return ( * * ) */ export const ComicVineSearchForm = (data) => { const dispatch = useDispatch(); const onSubmit = useCallback((value) => { const userInititatedQuery = { inferredIssueDetails: { name: value.issueName, number: value.issueNumber, subtitle: "", year: value.issueYear, }, }; dispatch(fetchComicVineMatches(data, userInititatedQuery)); }, []); const validate = () => { return true; }; const MyForm = () => (
(
{(props) => (

)}
{(props) => (

)}
{(props) => (

)}
)} /> ); return ; }; export default ComicVineSearchForm;