summaryrefslogtreecommitdiff
path: root/src/services/account/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/account/index.ts')
-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;