From ef742ea9b2f246f74eae74169675a331679ad41c Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Fri, 26 Mar 2021 01:56:04 +0300
Subject: feat: add strong typing where possible

---
 src/services/transfers/TransferForm.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/services/transfers/TransferForm.tsx')

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'));
-- 
cgit v1.2.3

