-
+
Are you sure you want to delete {environment.name} ?
diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js
index f1b99ec6..22872cd4 100644
--- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js
+++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js
@@ -12,7 +12,7 @@ const Wrapper = styled.div`
}
thead {
- color: ${(props) => props.theme.table.thead.color};;
+ color: ${(props) => props.theme.table.thead.color};
font-size: 0.8125rem;
user-select: none;
}
diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js
index bda2782a..e3ad6e08 100644
--- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js
+++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js
@@ -99,7 +99,12 @@ const EnvironmentVariables = ({ environment, collection }) => {
- handleVarChange(e, variable, 'enabled')} />
+ handleVarChange(e, variable, 'enabled')}
+ />
@@ -119,7 +124,12 @@ const EnvironmentVariables = ({ environment, collection }) => {
-
diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/index.js
index fee5a84c..8db0d041 100644
--- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/index.js
+++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/index.js
@@ -10,8 +10,16 @@ const EnvironmentDetails = ({ environment, collection }) => {
return (
- {openEditModal && setOpenEditModal(false)} environment={environment} collection={collection} />}
- {openDeleteModal && setOpenDeleteModal(false)} environment={environment} collection={collection} />}
+ {openEditModal && (
+ setOpenEditModal(false)} environment={environment} collection={collection} />
+ )}
+ {openDeleteModal && (
+ setOpenDeleteModal(false)}
+ environment={environment}
+ collection={collection}
+ />
+ )}
diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js
index 9fbb008d..b80cd92a 100644
--- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js
+++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js
@@ -14,12 +14,12 @@ const EnvironmentList = ({ collection }) => {
const prevEnvUids = usePrevious(envUids);
useEffect(() => {
- if(selectedEnvironment) {
+ if (selectedEnvironment) {
return;
}
-
+
const environment = findEnvironmentInCollection(collection, collection.activeEnvironmentUid);
- if(environment) {
+ if (environment) {
setSelectedEnvironment(environment);
} else {
setSelectedEnvironment(environments && environments.length ? environments[0] : null);
@@ -28,9 +28,9 @@ const EnvironmentList = ({ collection }) => {
useEffect(() => {
// check env add
- if (prevEnvUids && prevEnvUids.length && envUids.length > prevEnvUids.length) {
+ if (prevEnvUids && prevEnvUids.length && envUids.length > prevEnvUids.length) {
const newEnv = environments.find((env) => !prevEnvUids.includes(env.uid));
- if(newEnv){
+ if (newEnv) {
setSelectedEnvironment(newEnv);
}
}
@@ -38,7 +38,7 @@ const EnvironmentList = ({ collection }) => {
// check env delete
if (prevEnvUids && prevEnvUids.length && envUids.length < prevEnvUids.length) {
setSelectedEnvironment(environments && environments.length ? environments[0] : null);
- }
+ }
}, [envUids, environments, prevEnvUids]);
if (!selectedEnvironment) {
diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/RenameEnvironment/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/RenameEnvironment/index.js
index f6749668..a79bff49 100644
--- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/RenameEnvironment/index.js
+++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/RenameEnvironment/index.js
@@ -16,7 +16,10 @@ const RenameEnvironment = ({ onClose, environment, collection }) => {
name: environment.name
},
validationSchema: Yup.object({
- name: Yup.string().min(1, 'must be atleast 1 characters').max(50, 'must be 50 characters or less').required('name is required')
+ name: Yup.string()
+ .min(1, 'must be atleast 1 characters')
+ .max(50, 'must be 50 characters or less')
+ .required('name is required')
}),
onSubmit: (values) => {
dispatch(renameEnvironment(values.name, environment.uid, collection.uid))
@@ -40,7 +43,13 @@ const RenameEnvironment = ({ onClose, environment, collection }) => {
return (
-
+
diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/index.js
index 11afce98..855e0fb3 100644
--- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/index.js
+++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/index.js
@@ -11,11 +11,21 @@ const EnvironmentSettings = ({ collection, onClose }) => {
if (!environments || !environments.length) {
return (
-
+
{openCreateModal && setOpenCreateModal(false)} />}
No environments found!
- setOpenCreateModal(true)}>
+ setOpenCreateModal(true)}
+ >
+ Create Environment
diff --git a/packages/bruno-app/src/components/Icons/Send/index.js b/packages/bruno-app/src/components/Icons/Send/index.js
index 15b4fa8c..9b227435 100644
--- a/packages/bruno-app/src/components/Icons/Send/index.js
+++ b/packages/bruno-app/src/components/Icons/Send/index.js
@@ -1,17 +1,12 @@
import React from 'react';
-const SendIcon = ({color, width}) => {
+const SendIcon = ({ color, width }) => {
return (
- |