From 44d45b0553e1064fbb58d4113ac4e5d7009658e7 Mon Sep 17 00:00:00 2001 From: Jonas Brunvoll Larsson Date: Thu, 26 Sep 2024 17:05:46 +0200 Subject: [PATCH] Add typescript pick to specify which props to be included in FeeComplaintForm --- .../contact/ticket-control/forms/feeComplaintForm.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/page-modules/contact/ticket-control/forms/feeComplaintForm.tsx b/src/page-modules/contact/ticket-control/forms/feeComplaintForm.tsx index 3f1a1029..18eabe05 100644 --- a/src/page-modules/contact/ticket-control/forms/feeComplaintForm.tsx +++ b/src/page-modules/contact/ticket-control/forms/feeComplaintForm.tsx @@ -16,7 +16,7 @@ type FeeComplaintFormProps = { send: (event: typeof ticketControlFormEvents) => void; }; -type FirstAgreementProps = FeeComplaintFormProps; +type FirstAgreementProps = Pick; const FirstAgreement = ({ state, send }: FirstAgreementProps) => { const { t } = useTranslation(); @@ -64,7 +64,7 @@ const FirstAgreement = ({ state, send }: FirstAgreementProps) => { ); }; -type SecondAgreementProps = FeeComplaintFormProps; +type SecondAgreementProps = Pick; const SecondAgreement = ({ state, send }: SecondAgreementProps) => { const { t } = useTranslation(); @@ -104,8 +104,7 @@ const SecondAgreement = ({ state, send }: SecondAgreementProps) => { ); }; -type FormProps = FeeComplaintFormProps; - +type FormProps = Pick; const FormContent = ({ state, send }: FormProps) => { const { t } = useTranslation(); return (