From 7fdf733a64670fceefc3ded35cfa581e1c458179 Mon Sep 17 00:00:00 2001 From: Einav Weiss Keidar Date: Tue, 20 Mar 2018 14:45:40 +0200 Subject: Adding Prettier and fixing up eslint version Issue-ID: SDC-1094 Change-Id: Ie83ad95a03899345dd90235daf0323cbe3bc6afd Signed-off-by: Einav Weiss Keidar --- .../nfvo-components/table/SelectActionTable.jsx | 75 +++++++++++++++------- 1 file changed, 53 insertions(+), 22 deletions(-) (limited to 'openecomp-ui/src/nfvo-components/table/SelectActionTable.jsx') diff --git a/openecomp-ui/src/nfvo-components/table/SelectActionTable.jsx b/openecomp-ui/src/nfvo-components/table/SelectActionTable.jsx index 3f8dbba53a..ee8a9dca45 100644 --- a/openecomp-ui/src/nfvo-components/table/SelectActionTable.jsx +++ b/openecomp-ui/src/nfvo-components/table/SelectActionTable.jsx @@ -5,26 +5,57 @@ import Button from 'sdc-ui/lib/react/Button.js'; import uuid from 'uuid-js'; export default class SelectActionTable extends React.Component { - - render() { - let {columns, onAdd, isReadOnlyMode, children, onAddItem, numOfIcons} = this.props; - return ( -
-
- {onAdd && onAddItem && - } - -
-
-
- {columns.map(column =>
{i18n(column)}
)} - {Array(numOfIcons).fill().map((e, i) => )} -
-
- {children} -
-
-
- ); - } + render() { + let { + columns, + onAdd, + isReadOnlyMode, + children, + onAddItem, + numOfIcons + } = this.props; + return ( +
+
+ {onAdd && + onAddItem && ( + + )} + +
+
+
+ {columns.map(column => ( +
+ {i18n(column)} +
+ ))} + {Array(numOfIcons) + .fill() + .map((e, i) => ( + + ))} +
+
{children}
+
+
+ ); + } } -- cgit 1.2.3-korg