Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mjturt committed Sep 21, 2023
1 parent eb013c7 commit 08f9bd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ApplicationForm: React.FC = () => {
maxEndDate,
setEndDate,
getSelectValue,
paySubsidyOptions,
subsidyOptions,
deMinimisAidSet,
attachments,
dispatchStep,
Expand Down Expand Up @@ -119,7 +119,7 @@ const ApplicationForm: React.FC = () => {
maxEndDate={maxEndDate}
setEndDate={setEndDate}
getSelectValue={getSelectValue}
paySubsidyOptions={paySubsidyOptions}
paySubsidyOptions={subsidyOptions}
deMinimisAidSet={deMinimisAidSet}
attachments={attachments}
checkedConsentArray={checkedConsentArray}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import {
$GridCell,
} from 'shared/components/forms/section/FormSection.sc';
import { BenefitAttachment } from 'shared/types/attachment';
import { OptionType } from 'shared/types/common';
import {
formatStringFloatValue,
stringFloatToFixed,
Expand All @@ -55,8 +54,6 @@ type Props = {
minEndDate: Date;
maxEndDate: Date | undefined;
setEndDate: () => void;
getSelectValue: (fieldName: keyof Application) => OptionType | null;
paySubsidyOptions: OptionType[];
deMinimisAidSet: DeMinimisAid[];
attachments: BenefitAttachment[];
checkedConsentArray: boolean[];
Expand Down Expand Up @@ -92,7 +89,6 @@ const FormContent: React.FC<Props> = ({
clearDatesValues,
clearCommissionValues,
clearContractValues,
clearPaySubsidyValues,
clearAlternativeAddressValues,
getErrorMessage,
} = useFormContent(formik, fields);
Expand All @@ -106,7 +102,6 @@ const FormContent: React.FC<Props> = ({
formik.values.associationHasBusinessActivities,
apprenticeshipProgram: formik.values.apprenticeshipProgram,
benefitType: formik.values.benefitType,
paySubsidyGranted: formik.values.paySubsidyGranted,
startDate: formik.values.startDate,
useAlternativeAddress: formik.values.useAlternativeAddress,
},
Expand All @@ -117,19 +112,11 @@ const FormContent: React.FC<Props> = ({
clearDatesValues,
clearCommissionValues,
clearContractValues,
clearPaySubsidyValues,
clearAlternativeAddressValues,
setEndDate,
}
);

const isAbleToSelectEmploymentBenefit =
application?.company?.organizationType !== ORGANIZATION_TYPES.ASSOCIATION ||
(application?.company?.organizationType ===
ORGANIZATION_TYPES.ASSOCIATION &&
application?.associationHasBusinessActivities);
const isAbleToSelectSalaryBenefit = formik.values.paySubsidyGranted === true;

return (
<form onSubmit={handleSave} noValidate>
<CompanySection
Expand Down

0 comments on commit 08f9bd5

Please sign in to comment.