Добавлен столбец лого в таблицу участники

This commit is contained in:
ts_salikhov 2022-08-12 15:01:37 +04:00
parent 0148fed514
commit cf34baa0a3

View File

@ -1,8 +1,10 @@
import React, {memo, useMemo} from 'react';
import {makeTextColumn} from "@components/Table";
import {Table} from "antd";
import {BankOutlined} from "@ant-design/icons";
const columns = [
makeTextColumn('', 'logo'),
makeTextColumn('Название компании', 'caption'),
makeTextColumn('Тип компании', 'companyTypeCaption'),
]
@ -10,6 +12,7 @@ const columns = [
const CompaniesTable = memo(({companies}) => {
const dataCompanies = useMemo(() => companies?.map((company) => ({
key: company.id,
logo: <BankOutlined/>,
caption: company.caption,
companyTypeCaption: company.companyTypeCaption,
})), [companies]);