forked from ddrilling/asb_cloud_front
Добавлен столбец лого в таблицу участники
This commit is contained in:
parent
0148fed514
commit
cf34baa0a3
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user