diff --git a/src/leases/components/leaseSections/rent/BasicInfoEdit.tsx b/src/leases/components/leaseSections/rent/BasicInfoEdit.tsx index a3321a0b..c65c50aa 100644 --- a/src/leases/components/leaseSections/rent/BasicInfoEdit.tsx +++ b/src/leases/components/leaseSections/rent/BasicInfoEdit.tsx @@ -38,7 +38,7 @@ type SeasonalDatesProps = { seasonalStartMonth: string | null | undefined; }; -const SeasonalDates = connect((state, props: Props) => { +const SeasonalDates = connect((state, props: Omit) => { return { seasonalEndDay: selector(state, `${props.field}.seasonal_end_day`), seasonalEndMonth: selector(state, `${props.field}.seasonal_end_month`), @@ -204,7 +204,7 @@ type BasicInfoIndexOrManualProps = { isSaveClicked: boolean; leaseAttributes: Attributes; usersPermissions: UsersPermissionsType; - yearlyDueDates: Array>; + yearlyDueDates: Array; }; const BasicInfoIndexOrManual = ({ @@ -390,7 +390,7 @@ type BasicInfoFixedProps = { isSaveClicked: boolean; leaseAttributes: Attributes; usersPermissions: UsersPermissionsType; - yearlyDueDates: Array>; + yearlyDueDates: Array; }; const BasicInfoFixed = ({ @@ -568,7 +568,13 @@ const BasicInfoEdit = ({ ; }; -export default connect((state, props) => { +type BasicInfoEditProps = { + field: string; + isSaveClicked: boolean; + rentType: string; +} + +export default connect((state, props: BasicInfoEditProps) => { return { currentLease: getCurrentLease(state), cycle: selector(state, `${props.field}.cycle`),