forked from ddrilling/asb_cloud_front
33146c59d8
Add Grid.jsx for css grid.
25 lines
593 B
JavaScript
25 lines
593 B
JavaScript
import {Tooltip} from 'antd'
|
|
import {BankOutlined} from '@ant-design/icons'
|
|
import {Grid, GridItem} from './Grid'
|
|
|
|
export const CompanyView = ({company}) => {
|
|
if(!company)
|
|
return <Tooltip title='нет данных'>-</Tooltip>
|
|
|
|
const displayName = company?.caption
|
|
|
|
const tooltipInfo = <Grid columnGap='8px'>
|
|
<GridItem row={1} col={1}>
|
|
тип:
|
|
</GridItem>
|
|
<GridItem row={1} col={2}>
|
|
{company?.companyTypeCaption}
|
|
</GridItem>
|
|
</Grid>
|
|
|
|
return <Tooltip title={tooltipInfo}>
|
|
<BankOutlined style={{marginRight:8}}/>
|
|
{displayName}
|
|
</Tooltip>
|
|
|
|
} |