Revize cdd4201c
Přidáno uživatelem Dominik Poch před téměř 3 roky(ů)
webapp/pages/tags/index.tsx | ||
---|---|---|
5 | 5 |
import { useRouter } from 'next/router'; |
6 | 6 |
import { Button, Checkbox, Popconfirm, Typography } from 'antd'; |
7 | 7 |
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; |
8 |
import { faTags } from '@fortawesome/free-solid-svg-icons'; |
|
8 |
import { |
|
9 |
faTags, |
|
10 |
faPlus, |
|
11 |
faPenToSquare, |
|
12 |
faTrashCan, |
|
13 |
} from '@fortawesome/free-solid-svg-icons'; |
|
9 | 14 |
import { LoggedUserContext } from '../../contexts/LoggedUserContext'; |
10 | 15 |
import { MainLayout } from '../../layouts/MainLayout'; |
11 | 16 |
import { Container, Row, Stack } from 'react-bootstrap'; |
... | ... | |
99 | 104 |
<Stack direction="horizontal"> |
100 | 105 |
{record.depth < 2 && ( |
101 | 106 |
<Button type="primary" onClick={addChild(record)}> |
102 |
<PlusOutlined />
|
|
107 |
<FontAwesomeIcon icon={faPlus} />
|
|
103 | 108 |
</Button> |
104 | 109 |
)} |
105 | 110 |
<Button type="text" onClick={editRecord(record)}> |
106 |
<EditOutlined />
|
|
111 |
<FontAwesomeIcon icon={faPenToSquare} />
|
|
107 | 112 |
</Button> |
108 | 113 |
<Popconfirm |
109 | 114 |
title="Opravdu chcete smazat?" |
110 | 115 |
onConfirm={deleteRecord(record)} |
111 | 116 |
> |
112 | 117 |
<Button type="primary" danger> |
113 |
<DeleteOutlined />
|
|
118 |
<FontAwesomeIcon icon={faTrashCan} />
|
|
114 | 119 |
</Button> |
115 | 120 |
</Popconfirm> |
116 | 121 |
</Stack> |
Také k dispozici: Unified diff
Fixed alignment of icons