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 --- .../src/sdc-app/onboarding/onboard/CatalogList.jsx | 78 ++++++++++++++-------- 1 file changed, 51 insertions(+), 27 deletions(-) (limited to 'openecomp-ui/src/sdc-app/onboarding/onboard/CatalogList.jsx') diff --git a/openecomp-ui/src/sdc-app/onboarding/onboard/CatalogList.jsx b/openecomp-ui/src/sdc-app/onboarding/onboard/CatalogList.jsx index 10d855c862..b00ceeb48f 100644 --- a/openecomp-ui/src/sdc-app/onboarding/onboard/CatalogList.jsx +++ b/openecomp-ui/src/sdc-app/onboarding/onboard/CatalogList.jsx @@ -17,37 +17,61 @@ import React from 'react'; import i18n from 'nfvo-utils/i18n/i18n.js'; import SVGIcon from 'sdc-ui/lib/react/SVGIcon.js'; -const SoftwareProductListHeader = ({selectedVendor, onBack}) => ( -
- -
-
{selectedVendor.name}
-
+const SoftwareProductListHeader = ({ selectedVendor, onBack }) => ( +
+ +
+
{selectedVendor.name}
+
); -const CatalogList = ({children, onAddVLM, onAddVSP, vendorPageOptions}) => ( -
- {vendorPageOptions && } -
- { (onAddVLM || onAddVSP) && -
- {onAddVLM && } - {onAddVSP && onAddVSP()} dataTestId={'catalog-add-new-vsp'} className='vsp-type' title={i18n('CREATE NEW VSP')}/>} -
- } - {children} -
-
+const CatalogList = ({ children, onAddVLM, onAddVSP, vendorPageOptions }) => ( +
+ {vendorPageOptions && ( + + )} +
+ {(onAddVLM || onAddVSP) && ( +
+ {onAddVLM && ( + + )} + {onAddVSP && ( + onAddVSP()} + dataTestId={'catalog-add-new-vsp'} + className="vsp-type" + title={i18n('CREATE NEW VSP')} + /> + )} +
+ )} + {children} +
+
); -const CreateItemTile = ({onClick, dataTestId, title, className = ''}) => { - //TODO check for buttons - return ( -
-
-
{title}
-
- ); +const CreateItemTile = ({ onClick, dataTestId, title, className = '' }) => { + //TODO check for buttons + return ( +
+
+ +
+
{title}
+
+ ); }; export default CatalogList; -- cgit 1.2.3-korg