Revize 4bc99591
Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)
webapp/components/annotation/AnnotationItem.tsx | ||
---|---|---|
19 | 19 |
* @returns The item that represents an annotation. |
20 | 20 |
*/ |
21 | 21 |
export function AnnotationItem(props: { tag: Tag }) { |
22 |
const { markSelectedText } = useContext(AnnotationContext); |
|
23 |
|
|
22 | 24 |
/** |
23 | 25 |
* Should properties of this annotation be visible? |
24 | 26 |
*/ |
... | ... | |
88 | 90 |
<Col sm="auto" className="d-flex align-items-center"> |
89 | 91 |
<TagOutlined /> |
90 | 92 |
</Col> |
91 |
<Col className="d-flex align-items-center">{props.tag.name}</Col> |
|
93 |
<Col className="d-flex align-items-center"> |
|
94 |
{props.tag.tagName} |
|
95 |
{props.tag.subtagName ? ' (' + props.tag.subtagName + ')' : ''} |
|
96 |
</Col> |
|
92 | 97 |
<Col sm="auto"> |
93 | 98 |
<Button |
94 | 99 |
type="text" |
Také k dispozici: Unified diff
Adding tag/subtag to selected text