From 9e891937476e22e81c857ca10722a5b78c2deb57 Mon Sep 17 00:00:00 2001 From: Toba Ojo Date: Fri, 5 Dec 2025 12:53:42 +0000 Subject: [PATCH] - finally fixed custom imput to match what is on backend on sighting amend endpoint --- .../output/components/ChannelCard.tsx | 7 +-- .../output/components/ChannelFields.tsx | 42 ++++++++-------- .../output/components/OutputForms.tsx | 41 +++++++++------ src/features/output/hooks/useCustomFields.ts | 50 ++++++++++++++++++- src/types/types.ts | 12 ++++- 5 files changed, 108 insertions(+), 44 deletions(-) diff --git a/src/features/output/components/ChannelCard.tsx b/src/features/output/components/ChannelCard.tsx index 04fa3e0..6a6ec51 100644 --- a/src/features/output/components/ChannelCard.tsx +++ b/src/features/output/components/ChannelCard.tsx @@ -5,11 +5,7 @@ import ChannelFields from "./ChannelFields"; import type { FormTypes } from "../../../types/types"; import { useGetBearerConfig } from "../hooks/useBearer"; -type ChannelCardProps = { - customFields: (string | undefined)[]; -}; - -const ChannelCard = ({ customFields }: ChannelCardProps) => { +const ChannelCard = () => { const { values, errors, touched, setFieldValue } = useFormikContext(); const { bearerQuery } = useGetBearerConfig(values?.format?.toLowerCase() || "json"); const outputData = bearerQuery?.data; @@ -22,7 +18,6 @@ const ChannelCard = ({ customFields }: ChannelCardProps) => { values={values} outputData={outputData} onSetFieldValue={setFieldValue} - customFields={customFields} />