summaryrefslogtreecommitdiff
path: root/src/services/products/index.ts
blob: 8d42c56cb67b60baecfada42af6c3abcc9c39a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Form from './ProductForm';
import { ServiceParams } from '../../containers/Service/ServiceContext';

const service: ServiceParams = {
  route: 'products',
  name: 'Товары',
  nameSingular: 'Товар',
  tableFields: [
    { key: 'name', label: 'Название' },
    { key: 'price', label: 'Цена' },
    { key: 'quantity', label: 'На складе' },
  ],
  default: {
    name: '',
    price: '',
    quantity: 0,
  },
  Form,
};

export default service;