Adding Prettier and fixing up eslint version
[sdc.git] / openecomp-ui / src / sdc-app / onboarding / softwareProduct / components / network / nicEditorComponents / NameAndPurpose.jsx
index 06a2bb4..5a89239 100644 (file)
@@ -20,40 +20,48 @@ import Input from 'nfvo-components/input/validation/Input.jsx';
 import GridSection from 'nfvo-components/grid/GridSection.jsx';
 import GridItem from 'nfvo-components/grid/GridItem.jsx';
 
-const NameAndPurpose = ({onDataChanged, genericFieldInfo, isReadOnlyMode, name, description, isManual}) => {
-
-       return (
-               <GridSection hastLastColSet>
-                       <GridItem colSpan={2}>
-                               <Input
-                                       label={i18n('Name')}
-                                       value={name}
-                                       data-test-id='nic-name'
-                                       disabled={!isManual}
-                                       isRequired={true}
-                                       onChange={name => onDataChanged({name})}
-                                       isValid={genericFieldInfo['name'].isValid}
-                                       errorText={genericFieldInfo['name'].errorText}
-                                       type='text' />
-                       </GridItem>
-                       <GridItem colSpan={2} lastColInRow>
-                               <Input
-                                       label={i18n('Purpose of NIC')}
-                                       value={description}
-                                       data-test-id='nic-description'
-                                       onChange={description => onDataChanged({description})}
-                                       disabled={isReadOnlyMode}
-                                       type='textarea' />
-                       </GridItem>
-               </GridSection>
-       );
+const NameAndPurpose = ({
+    onDataChanged,
+    genericFieldInfo,
+    isReadOnlyMode,
+    name,
+    description,
+    isManual
+}) => {
+    return (
+        <GridSection hastLastColSet>
+            <GridItem colSpan={2}>
+                <Input
+                    label={i18n('Name')}
+                    value={name}
+                    data-test-id="nic-name"
+                    disabled={!isManual}
+                    isRequired={true}
+                    onChange={name => onDataChanged({ name })}
+                    isValid={genericFieldInfo['name'].isValid}
+                    errorText={genericFieldInfo['name'].errorText}
+                    type="text"
+                />
+            </GridItem>
+            <GridItem colSpan={2} lastColInRow>
+                <Input
+                    label={i18n('Purpose of NIC')}
+                    value={description}
+                    data-test-id="nic-description"
+                    onChange={description => onDataChanged({ description })}
+                    disabled={isReadOnlyMode}
+                    type="textarea"
+                />
+            </GridItem>
+        </GridSection>
+    );
 };
 
 NameAndPurpose.PropTypes = {
-       name: PropTypes.string,
-       description: PropTypes.array,
-       onDataChanged: PropTypes.func,
-       isReadOnlyMode: PropTypes.bool,
+    name: PropTypes.string,
+    description: PropTypes.array,
+    onDataChanged: PropTypes.func,
+    isReadOnlyMode: PropTypes.bool
 };
 
 export default NameAndPurpose;