From 58ad66285b74e4e1dd886f23201ae425b924d917 Mon Sep 17 00:00:00 2001 From: irismarie Date: Fri, 15 Jan 2021 18:57:44 +0100 Subject: [PATCH] added add/remove file button --- src/common/table.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/common/table.js b/src/common/table.js index ed936e8..d0e974c 100644 --- a/src/common/table.js +++ b/src/common/table.js @@ -114,11 +114,6 @@ class CustomTable extends Component { ); } - if (child.props.deleteButton) { - cell.push( Delete } > - ); - } - if (child.props.checkbox) { const checkboxKey = child.props.checkboxKey; @@ -126,20 +121,30 @@ class CustomTable extends Component { } if (child.props.exportButton) { - cell.push( Export } > + cell.push( Export } > ); } if (child.props.duplicateButton) { - cell.push( Duplicate } > + cell.push( Duplicate } > ); } + if (child.props.addRemoveFilesButton) { + cell.push(Add/remove File(s)} > + ); + } + if (child.props.downloadAllButton) { cell.push(Download All Files} > ); } + if (child.props.deleteButton) { + cell.push( Delete } > + ); + } + return cell; } // addCell