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