diff options
Diffstat (limited to 'src/services/transfers/TransferForm.tsx')
-rw-r--r-- | src/services/transfers/TransferForm.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/services/transfers/TransferForm.tsx b/src/services/transfers/TransferForm.tsx index 3502609..92846a3 100644 --- a/src/services/transfers/TransferForm.tsx +++ b/src/services/transfers/TransferForm.tsx @@ -4,12 +4,13 @@ import moment from 'moment'; import Input from '../../components/Input'; import Select from '../../components/Select'; import hooks from '../../hooks/useAPIClient'; +import { Contractor, Transfer } from '../types'; -const mapper = (item: any) => ({ key: item._id, label: item.name }); +const mapper = (item: Contractor) => ({ key: item._id, label: item.name }); -const TransferForm: React.FC<FormikProps<any>> = ({ setFieldValue, values }) => { +const TransferForm: React.FC<FormikProps<Transfer>> = ({ setFieldValue, values }) => { const { data: contractors } = hooks.contractors.useList(); if (!values.date) setFieldValue('date', moment().format('YYYY-MM-DD')); |