diff --git a/src/components/DeleteVariable/index.js b/src/components/DeleteVariable/index.js index 1b58fd1e..9204d4f8 100644 --- a/src/components/DeleteVariable/index.js +++ b/src/components/DeleteVariable/index.js @@ -2,13 +2,13 @@ import React, { useEffect, useState } from 'react'; import { Mutation } from 'react-apollo'; import ButtonBootstrap from 'react-bootstrap/Button'; +import { LoadingOutlined } from '@ant-design/icons'; import withLogic from 'components/AddVariable/logic'; import Button from 'components/Button'; import Modal from 'components/Modal'; import DeleteEnvVariableMutation from '../../lib/mutation/deleteEnvVariableByName'; import { DeleteVariableButton, DeleteVariableModal } from './StyledDeleteVariable'; -import {LoadingOutlined} from "@ant-design/icons"; /** * Deletes a Variable. @@ -45,16 +45,13 @@ export const DeleteVariable = ({ return ( - { - loading && valueState ? ( - - ) : ( - - ) - } + {loading && valueState ? ( + + ) : ( + + )} diff --git a/src/components/EnvironmentVariables/index.js b/src/components/EnvironmentVariables/index.js index 3b5b6fc0..72ba05d2 100644 --- a/src/components/EnvironmentVariables/index.js +++ b/src/components/EnvironmentVariables/index.js @@ -137,7 +137,7 @@ const EnvironmentVariables = ({ environment, onVariableAdded }) => { getEnvVarValues(); setOpenEnvVars(false); setAction(action); - if (action === "delete") { + if (action === 'delete') { valuesShow(index); } }; @@ -284,61 +284,62 @@ const EnvironmentVariables = ({ environment, onVariableAdded }) => {
- {!envLoading &&( - -
- -
-
+ {!envLoading && ( + +
+ +
+
)}
{displayVars.map((envVar, index) => { return ( -
+
{envVar.name}
{envVar.scope}
{renderEnvValues(envVar, index)}
- { !envLoading && ( - -
- - - -
-
+ + +
+ )}