Revize a44aa67e
Přidáno uživatelem Jaroslav Hrubý před asi 2 roky(ů)
webapp/components/annotation/CategoryItem.tsx | ||
---|---|---|
1 | 1 |
import { Col, Container, Row, Stack } from 'react-bootstrap'; |
2 |
import { Button } from 'antd'; |
|
3 |
import { DownOutlined, TagOutlined, UpOutlined } from '@ant-design/icons'; |
|
2 |
import { Button, Tooltip } from 'antd'; |
|
3 |
import { |
|
4 |
DownOutlined, |
|
5 |
QuestionCircleOutlined, |
|
6 |
TagOutlined, |
|
7 |
UpOutlined, |
|
8 |
} from '@ant-design/icons'; |
|
4 | 9 |
import { TagCategoryInfo } from '../../api'; |
5 | 10 |
import React, { useState } from 'react'; |
6 | 11 |
import { TagItem } from './TagItem'; |
... | ... | |
39 | 44 |
className="w-100 text-start rounded" |
40 | 45 |
> |
41 | 46 |
{props.category.name} |
47 |
{props.category.description && props.category.description !== '' && ( |
|
48 |
<Tooltip |
|
49 |
title={props.category.description} |
|
50 |
key={props.category.description} |
|
51 |
> |
|
52 |
<QuestionCircleOutlined /> |
|
53 |
</Tooltip> |
|
54 |
)} |
|
42 | 55 |
</Button> |
43 | 56 |
</Row> |
44 | 57 |
{visibleTags && ( |
Také k dispozici: Unified diff
Tag buttons tooltips implemented