diff options
author | eug-vs <eug-vs@keemail.me> | 2021-04-17 15:21:08 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-04-17 15:21:08 +0300 |
commit | cfdce1fb1179cfe4f15fc26676f064ca10fb9ce4 (patch) | |
tree | a87cb7ed78dc2df79885b38c124cf061cdd351b5 /src/services/account | |
parent | f3a5275522c90a9ddc961b994a8c9adc041d0f3d (diff) | |
download | commercel-ui-cfdce1fb1179cfe4f15fc26676f064ca10fb9ce4.tar.gz |
refactor: move transformDate to transforms
Diffstat (limited to 'src/services/account')
-rw-r--r-- | src/services/account/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/services/account/index.ts b/src/services/account/index.ts index cbe56f5..ab8ab38 100644 --- a/src/services/account/index.ts +++ b/src/services/account/index.ts @@ -1,10 +1,11 @@ import { ServiceParams } from '../../lib/ServiceContext'; +import { transformDate } from '../transforms'; const service: ServiceParams = { route: 'account', name: 'Рассчётный счёт', tableFields: [ - { key: 'date', label: 'Дата', transform: date => new Date(date).toLocaleDateString() }, + { key: 'date', label: 'Дата', transform: transformDate }, { key: 'amount', label: 'Сумма' }, ], actions: [ |