summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-04-19 11:22:29 +0300
committereug-vs <eug-vs@keemail.me>2021-04-19 11:22:29 +0300
commit18c9ec061f0ad349493e024c349fc0481b1b1c43 (patch)
tree9d49ce1df70c57c4b03e8ef498cfacee2738f605
parent2644ca9596ad664c11326ec9c27b781e078da016 (diff)
downloadcommercel-ui-18c9ec061f0ad349493e024c349fc0481b1b1c43.tar.gz
feat: remove account service
-rw-r--r--src/services/account/index.ts20
-rw-r--r--src/services/index.ts2
2 files changed, 0 insertions, 22 deletions
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));