From 18c9ec061f0ad349493e024c349fc0481b1b1c43 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 19 Apr 2021 11:22:29 +0300 Subject: feat: remove account service --- src/services/account/index.ts | 20 -------------------- src/services/index.ts | 2 -- 2 files changed, 22 deletions(-) delete mode 100644 src/services/account/index.ts (limited to 'src') diff --git a/src/services/account/index.ts b/src/services/account/index.ts deleted file mode 100644 index d2a91bd..0000000 --- a/src/services/account/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { ServiceParams } from '../../lib/ServiceContext'; -import { transformDate } from '../transforms'; - -const service: ServiceParams = { - route: 'account', - name: 'Расчётный счёт', - tableFields: [ - { key: 'date', label: 'Дата', transform: transformDate }, - { key: 'amount', label: 'Сумма' }, - ], - actions: [ - { - name: 'Загрузить выписку', - route: '/transfers/upload', - }, - ], - rowLink: item => `/transfers?date=${item.date}`, -}; - -export default service; diff --git a/src/services/index.ts b/src/services/index.ts index ade29df..2b0b17b 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -2,7 +2,6 @@ import contractors from './contractors'; import waybills from './waybills'; import transfers from './transfers'; import products from './products'; -import account from './account'; import { registerServiceHooks } from '../hooks/useAPIClient'; const services = [ @@ -10,7 +9,6 @@ const services = [ products, waybills, transfers, - account, ]; services.forEach(service => registerServiceHooks(service.route)); -- cgit v1.2.3