fix EditableTable Edit button visibility

This commit is contained in:
Фролов 2021-08-17 15:24:58 +05:00
parent 73d59ae03d
commit 29537b8d5a

View File

@ -143,10 +143,10 @@ export const EditableTable = ({
icon={<CloseCircleOutlined/>}/>
</span>)
:(<span>
<Button
{onRowEdit&&<Button
disabled={editingKey !== ''}
onClick={() => edit(record)}
icon={<EditOutlined/>}/>
icon={<EditOutlined/>}/>}
{onRowDelete&&
<Popconfirm title="Удалить?" onConfirm={()=>deleteRow(record)}>
<Button icon={<DeleteOutlined/>}/>