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/>}/> icon={<CloseCircleOutlined/>}/>
</span>) </span>)
:(<span> :(<span>
<Button {onRowEdit&&<Button
disabled={editingKey !== ''} disabled={editingKey !== ''}
onClick={() => edit(record)} onClick={() => edit(record)}
icon={<EditOutlined/>}/> icon={<EditOutlined/>}/>}
{onRowDelete&& {onRowDelete&&
<Popconfirm title="Удалить?" onConfirm={()=>deleteRow(record)}> <Popconfirm title="Удалить?" onConfirm={()=>deleteRow(record)}>
<Button icon={<DeleteOutlined/>}/> <Button icon={<DeleteOutlined/>}/>