replace close icon by delete icon

This commit is contained in:
Фролов 2021-05-31 10:08:37 +05:00
parent 116e730485
commit 7cd0971f24

View File

@ -1,7 +1,7 @@
import { useState, useEffect } from 'react';
import { Button, Select, Tag, Popover, Row, Tooltip } from 'antd';
import { ChartTimeArchive } from './charts/ChartTimeArchive';
//import { SlidersOutlined } from '@ant-design/icons';
import { DeleteOutlined } from '@ant-design/icons';
const { Option } = Select;
@ -101,7 +101,7 @@ export function ArchiveColumn({ data, config, rangeDate, chartRatio, onRemoveCha
const popBar = <Row>
{select}
<Tooltip title="Удалить этот график">
<Button onClick={() => onRemoveChart(config.id)}>X</Button>
<Button onClick={() => onRemoveChart(config.id)}><DeleteOutlined /></Button>
</Tooltip>
</Row>