31 lines
707 B
TypeScript
31 lines
707 B
TypeScript
/* eslint-disable import/prefer-default-export */
|
|
import type { ColumnsType } from 'antd/lib/table';
|
|
import type { Risk } from './types';
|
|
|
|
export const columns: ColumnsType<Risk> = [
|
|
{
|
|
key: 'riskName',
|
|
dataIndex: 'riskName',
|
|
title: 'Риск Safe Finance',
|
|
width: '55%',
|
|
},
|
|
{
|
|
key: 'sum',
|
|
title: 'Страховая сумма',
|
|
dataIndex: 'sum',
|
|
render: Intl.NumberFormat('ru', {
|
|
style: 'currency',
|
|
currency: 'RUB',
|
|
}).format,
|
|
},
|
|
{
|
|
key: 'premium',
|
|
title: 'Страховая премия по риску',
|
|
dataIndex: 'premium',
|
|
render: Intl.NumberFormat('ru', {
|
|
style: 'currency',
|
|
currency: 'RUB',
|
|
}).format,
|
|
},
|
|
];
|