summaryrefslogtreecommitdiff
path: root/src/services/accounts/index.ts
blob: 0200e15aa3dfb042d029ba3dd18e31e772cde255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { ServiceParams } from '../../lib/ServiceContext';
import { Account } from '../types';
import Form from './AccountForm';

const service: ServiceParams<Account> = {
  route: 'accounts',
  name: 'Счета',
  nameSingular: 'Счёт',
  tableFields: [
    { key: 'name', label: 'Название' },
    { key: 'currency', label: 'Валюта' },
    { key: 'balance', label: 'Баланс' },
  ],
  searchBy: ['name'],
  default: {
    name: '',
    balance: 0,
  },
  Form,
};

export default service;