From 94baee8e257139b54718ae2029a54bf470bf1560 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Fri, 18 Aug 2023 01:09:00 +0530 Subject: [PATCH] feat: Preferences (General Tab) --- .../Preferences/General/StyledWrapper.js | 7 +++++++ .../src/components/Preferences/General/index.js | 15 +++++++++++++++ .../src/components/Preferences/Support/index.js | 2 +- .../bruno-app/src/components/Preferences/index.js | 3 ++- packages/bruno-app/src/providers/Theme/index.js | 2 +- .../src/app/last-opened-collections.js | 1 + 6 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 packages/bruno-app/src/components/Preferences/General/StyledWrapper.js create mode 100644 packages/bruno-app/src/components/Preferences/General/index.js diff --git a/packages/bruno-app/src/components/Preferences/General/StyledWrapper.js b/packages/bruno-app/src/components/Preferences/General/StyledWrapper.js new file mode 100644 index 000000000..d45eda5b6 --- /dev/null +++ b/packages/bruno-app/src/components/Preferences/General/StyledWrapper.js @@ -0,0 +1,7 @@ +import styled from 'styled-components'; + +const StyledWrapper = styled.div` + color: ${(props) => props.theme.text}; +`; + +export default StyledWrapper; diff --git a/packages/bruno-app/src/components/Preferences/General/index.js b/packages/bruno-app/src/components/Preferences/General/index.js new file mode 100644 index 000000000..e5e510802 --- /dev/null +++ b/packages/bruno-app/src/components/Preferences/General/index.js @@ -0,0 +1,15 @@ +import React from 'react'; +import StyledWrapper from './StyledWrapper'; + +const General = () => { + return ( + +
+ + SSL Certificate Verification +
+
+ ); +}; + +export default General; diff --git a/packages/bruno-app/src/components/Preferences/Support/index.js b/packages/bruno-app/src/components/Preferences/Support/index.js index c4b612cec..0e14d6fe1 100644 --- a/packages/bruno-app/src/components/Preferences/Support/index.js +++ b/packages/bruno-app/src/components/Preferences/Support/index.js @@ -6,7 +6,7 @@ const Support = () => { return (
-
+
Documentation diff --git a/packages/bruno-app/src/components/Preferences/index.js b/packages/bruno-app/src/components/Preferences/index.js index fe6d9c475..455a6748f 100644 --- a/packages/bruno-app/src/components/Preferences/index.js +++ b/packages/bruno-app/src/components/Preferences/index.js @@ -2,6 +2,7 @@ import Modal from 'components/Modal/index'; import classnames from 'classnames'; import React, { useState } from 'react'; import Support from './Support'; +import General from './General'; import Theme from './Theme'; import StyledWrapper from './StyledWrapper'; @@ -17,7 +18,7 @@ const Preferences = ({ onClose }) => { const getTabPanel = (tab) => { switch (tab) { case 'general': { - return
General
; + return ; } case 'theme': { diff --git a/packages/bruno-app/src/providers/Theme/index.js b/packages/bruno-app/src/providers/Theme/index.js index 19c539a7f..16a9735c8 100644 --- a/packages/bruno-app/src/providers/Theme/index.js +++ b/packages/bruno-app/src/providers/Theme/index.js @@ -1,5 +1,5 @@ import themes from 'themes/index'; -import useLocalStorage from 'src/hooks/useLocalStorage/index'; +import useLocalStorage from 'hooks/useLocalStorage/index'; import { createContext, useContext } from 'react'; import { ThemeProvider as SCThemeProvider } from 'styled-components'; diff --git a/packages/bruno-electron/src/app/last-opened-collections.js b/packages/bruno-electron/src/app/last-opened-collections.js index 30ebe2fb2..88867a414 100644 --- a/packages/bruno-electron/src/app/last-opened-collections.js +++ b/packages/bruno-electron/src/app/last-opened-collections.js @@ -8,6 +8,7 @@ class LastOpenedCollections { name: 'preferences', clearInvalidConfig: true }); + console.log(`Preferences file is located at: ${this.store.path}`); } getAll() {