MSP-3325 add props in render for buttons in TokenContent

This commit is contained in:
Anastasiia committed 2024-05-28 16:05:13 +07:00
1 parent 963e3e259a
commit 9fd694912a
1 file changed
+3 -3
+3 -3
View File
@@ -163,16 +163,16 @@ const TokenContent = ({ id }: TokenPropTypes) => {
title: 'Действия',
dataIndex: 'token',
key: 'actions',
render: (value) => {
render: (value, record) => {
return (
<Button.Group>
<Tooltip title="Скопировать">
<Button icon={<CopyOutlined />} data-clipboard-text={value} />
<Button className="copy-btn" icon={<CopyOutlined />} data-clipboard-text={value} />
</Tooltip>
<Tooltip title="Удалить">
<Popconfirm
title="Закончить эту сессию?"
onConfirm={() => handleRevokeToken(value)}
onConfirm={() => handleRevokeToken(record)}
>
<Button icon={<DeleteOutlined />} />
</Popconfirm>