- updated base for endpoints
- added loading states - need to add new form for ftp type
This commit is contained in:
@@ -10,6 +10,7 @@ const OutputForms = () => {
|
||||
const { bearerMutation } = usePostBearerConfig();
|
||||
const { dispatcherQuery, dispatcherMutation } = useDispatcherConfig();
|
||||
|
||||
const isLoading = dispatcherQuery?.isLoading;
|
||||
const format = dispatcherQuery?.data?.propFormat?.value;
|
||||
const { optionalConstantsQuery, optionalConstantsMutation } = useOptionalConstants(format?.toLowerCase());
|
||||
const FFID = optionalConstantsQuery?.data?.propFeedIdentifier?.value;
|
||||
@@ -38,6 +39,8 @@ const OutputForms = () => {
|
||||
laneId: "",
|
||||
LID1: "",
|
||||
LID2: "",
|
||||
|
||||
// ftp - fields
|
||||
};
|
||||
|
||||
const handleSubmit = async (values: FormTypes) => {
|
||||
@@ -85,6 +88,10 @@ const OutputForms = () => {
|
||||
}
|
||||
};
|
||||
|
||||
if (isLoading) {
|
||||
return <div>Loading...</div>;
|
||||
}
|
||||
|
||||
return (
|
||||
<Formik initialValues={inititalValues} onSubmit={handleSubmit} enableReinitialize>
|
||||
<Form className="grid grid-cols-1 md:grid-cols-2">
|
||||
|
||||
Reference in New Issue
Block a user