summaryrefslogtreecommitdiff
path: root/src/services/account
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-26 00:44:51 +0300
committereug-vs <eug-vs@keemail.me>2021-03-26 00:44:51 +0300
commitf1cdf02e9c0dca3354f4eebd38edd2ba12075893 (patch)
treec164c722d879869024a1dcd07fec225eb5f5bf47 /src/services/account
parent062f10a25d43b875d187cf582b2ecf96d075ec26 (diff)
downloadcommercel-ui-f1cdf02e9c0dca3354f4eebd38edd2ba12075893.tar.gz
fix: improve typings
Diffstat (limited to 'src/services/account')
-rw-r--r--src/services/account/index.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/services/account/index.ts b/src/services/account/index.ts
index 5b5eb10..7cc28b4 100644
--- a/src/services/account/index.ts
+++ b/src/services/account/index.ts
@@ -1,8 +1,10 @@
-const service = {
+import { ServiceParams } from '../../containers/Service/ServiceContext';
+
+const service: ServiceParams = {
route: 'account',
name: 'Рассчётный счёт',
tableFields: [
- { key: 'date', label: 'Дата', transform: (date: string) => new Date(date).toLocaleDateString() },
+ { key: 'date', label: 'Дата', transform: date => new Date(date).toLocaleDateString() },
{ key: 'amount', label: 'Сумма' },
],
actions: [
@@ -11,7 +13,7 @@ const service = {
route: '/transfers/upload',
},
],
- rowLink: (item: any) => `/transfers?date=${item.date}`,
+ rowLink: item => `/transfers?date=${item.date}`,
};
export default service;