Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
busy-panda committed Apr 24, 2024
1 parent cf67824 commit b58d15b
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/bruno-app/src/components/Documentation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Documentation = ({ item, collection }) => {
const docs = item.draft ? get(item, 'draft.request.docs') : get(item, 'request.docs');
const preferences = useSelector((state) => state.app.preferences);
const isResponsePaneDockedToBottom = useSelector(
(state) => state.app.preferences.userInterface.isResponsePaneDockedToBottom
(state) => state.app.preferences.userInterface.responsePaneDockedToBottom
);

const updateCodeMirrorHeight = (parentId, offsetTop, dockRightHeight) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const RequestBody = ({ item, collection }) => {
const { displayedTheme } = useTheme();
const preferences = useSelector((state) => state.app.preferences);
const isResponsePaneDockedToBottom = useSelector(
(state) => state.app.preferences.userInterface.isResponsePaneDockedToBottom
(state) => state.app.preferences.userInterface.responsePaneDockedToBottom
);

const updateCodeMirrorHeight = (parentId, offsetTop, dockRightHeight) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Script = ({ item, collection }) => {
const { displayedTheme } = useTheme();
const preferences = useSelector((state) => state.app.preferences);
const isResponsePaneDockedToBottom = useSelector(
(state) => state.app.preferences.userInterface.isResponsePaneDockedToBottom
(state) => state.app.preferences.userInterface.responsePaneDockedToBottom
);

const updateCodeMirrorHeight = (parentId, offsetTop, dockRightHeight) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Tests = ({ item, collection }) => {
const { displayedTheme } = useTheme();
const preferences = useSelector((state) => state.app.preferences);
const isResponsePaneDockedToBottom = useSelector(
(state) => state.app.preferences.userInterface.isResponsePaneDockedToBottom
(state) => state.app.preferences.userInterface.responsePaneDockedToBottom
);

const onEdit = (value) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/bruno-app/src/components/RequestTabPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const RequestTabPanel = () => {
const screenHeight = useSelector((state) => state.app.screenHeight);
const preferences = useSelector((state) => state.app.preferences);
const isResponsePaneDockedToBottom = useSelector(
(state) => state.app.preferences.userInterface.isResponsePaneDockedToBottom
(state) => state.app.preferences.userInterface.responsePaneDockedToBottom
);
let asideWidth = useSelector((state) => state.app.leftSidebarWidth);
let asideHeight = useSelector((state) => state.app.topBarHeight);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const QueryResult = ({ item, collection, data, dataBuffer, width, disableRunEven
const { displayedTheme } = useTheme();
const preferences = useSelector((state) => state.app.preferences);
const isResponsePaneDockedToBottom = useSelector(
(state) => state.app.preferences.userInterface.isResponsePaneDockedToBottom
(state) => state.app.preferences.userInterface.responsePaneDockedToBottom
);

const debouncedResultFilterOnChange = debounce((e) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ResponseDockBottom = ({}) => {
const dispatch = useDispatch();
const preferences = useSelector((state) => state.app.preferences);
const isResponsePaneDockedToBottom = useSelector(
(state) => state.app.preferences.userInterface.isResponsePaneDockedToBottom
(state) => state.app.preferences.userInterface.responsePaneDockedToBottom
);

const dockToBottom = () => {
Expand All @@ -17,7 +17,7 @@ const ResponseDockBottom = ({}) => {
{
...preferences,
userInterface: {
isResponsePaneDockedToBottom: true
responsePaneDockedToBottom: true
}
},
false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ResponseDockRight = ({}) => {
const dispatch = useDispatch();
const preferences = useSelector((state) => state.app.preferences);
const isResponsePaneDockedToBottom = useSelector(
(state) => state.app.preferences.userInterface.isResponsePaneDockedToBottom
(state) => state.app.preferences.userInterface.responsePaneDockedToBottom
);

const dockToRight = () => {
Expand All @@ -17,7 +17,7 @@ const ResponseDockRight = ({}) => {
{
...preferences,
userInterface: {
isResponsePaneDockedToBottom: false
responsePaneDockedToBottom: false
}
},
false
Expand Down
5 changes: 1 addition & 4 deletions packages/bruno-app/src/providers/ReduxStore/slices/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const initialState = {
codeFont: 'default'
},
userInterface: {
isResponsePaneDockedToBottom: false
responsePaneDockedToBottom: false
}
},
cookies: [],
Expand All @@ -54,9 +54,6 @@ export const appSlice = createSlice({
updateEnvironmentSettingsModalVisibility: (state, action) => {
state.isEnvironmentSettingsModalOpen = action.payload;
},
updateResponsePaneDockToBottom: (state, action) => {
state.isResponsePaneDockedToBottom = action.payload;
},
showHomePage: (state) => {
state.showHomePage = true;
},
Expand Down
4 changes: 2 additions & 2 deletions packages/bruno-electron/src/store/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const defaultPreferences = {
bypassProxy: ''
},
userInterface: {
isResponsePaneDockedToBottom: false
responsePaneDockedToBottom: false
}
};

Expand Down Expand Up @@ -72,7 +72,7 @@ const preferencesSchema = Yup.object().shape({
bypassProxy: Yup.string().optional().max(1024)
}),
userInterface: Yup.object().shape({
isResponsePaneDockedToBottom: Yup.boolean()
responsePaneDockedToBottom: Yup.boolean()
})
});

Expand Down

0 comments on commit b58d15b

Please sign in to comment.