From bd71adebe0ed700cd4bb696fce8b64b7085c2275 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Sun, 19 Nov 2023 13:13:31 +0530 Subject: [PATCH] chore(#718): collcetion presets pr review --- .../Presets/StyledWrapper.js | 2 +- .../CollectionSettings/Presets/index.js | 40 +++++++++---------- .../CollectionProperties/StyledWrapper.js | 40 ------------------- .../components/Sidebar/NewRequest/index.js | 25 +++++++++++- .../ReduxStore/slices/collections/actions.js | 16 -------- .../ReduxStore/slices/collections/index.js | 9 ----- 6 files changed, 44 insertions(+), 88 deletions(-) delete mode 100644 packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionProperties/StyledWrapper.js diff --git a/packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js index c8f1241c5..602851baa 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js @@ -2,7 +2,7 @@ import styled from 'styled-components'; const StyledWrapper = styled.div` .settings-label { - width: 80px; + width: 110px; } .textbox { diff --git a/packages/bruno-app/src/components/CollectionSettings/Presets/index.js b/packages/bruno-app/src/components/CollectionSettings/Presets/index.js index 70fb8e98f..503090abd 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Presets/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/Presets/index.js @@ -9,14 +9,14 @@ import cloneDeep from 'lodash/cloneDeep'; const PresetsSettings = ({ collection }) => { const dispatch = useDispatch(); const { - brunoConfig: { presets: defaultPresets = {} } + brunoConfig: { presets: presets = {} } } = collection; const formik = useFormik({ enableReinitialize: true, initialValues: { - defaultType: defaultPresets.defaultType || 'http-request', - defaultRequestUrl: defaultPresets.defaultRequestUrl || '' + requestType: presets.requestType || 'http', + requestUrl: presets.requestUrl || '' }, onSubmit: (newPresets) => { const brunoConfig = cloneDeep(collection.brunoConfig); @@ -32,53 +32,53 @@ const PresetsSettings = ({ collection }) => {
-
+
-
-