chore: addressed review comments

This commit is contained in:
Anoop M D
2025-12-27 09:26:07 +05:30
parent 79cb1bfca8
commit 073117aa1b
5 changed files with 6 additions and 15 deletions

View File

@@ -1,7 +1,6 @@
import Modal from 'components/Modal/index';
import classnames from 'classnames';
import React, { useState } from 'react';
import { useSelector } from 'react-redux';
import Support from './Support';
import General from './General';
@@ -14,8 +13,7 @@ import Beta from './Beta';
import StyledWrapper from './StyledWrapper';
const Preferences = ({ onClose }) => {
const preferencesTab = useSelector((state) => state.app.preferencesTab);
const [tab, setTab] = useState(preferencesTab || 'general');
const [tab, setTab] = useState('general');
const getTabClassname = (tabName) => {
return classnames(`tab select-none ${tabName}`, {

View File

@@ -11,7 +11,6 @@ const initialState = {
screenWidth: 500,
showHomePage: false,
showPreferences: false,
preferencesTab: null,
showApiSpecPage: false,
showManageWorkspacePage: false,
isEnvironmentSettingsModalOpen: false,
@@ -96,13 +95,7 @@ export const appSlice = createSlice({
state.showApiSpecPage = false;
},
showPreferences: (state, action) => {
if (typeof action.payload === 'object') {
state.showPreferences = action.payload.show;
state.preferencesTab = action.payload.tab || null;
} else {
state.showPreferences = action.payload;
state.preferencesTab = null;
}
state.showPreferences = action.payload;
},
updatePreferences: (state, action) => {
state.preferences = action.payload;

View File

@@ -32,7 +32,7 @@ const themes = {
export const themeRegistry = {
'light': {
id: 'light',
name: 'Light',
name: 'Bruno Light',
mode: 'light'
},
'light-monochrome': {
@@ -42,7 +42,7 @@ export const themeRegistry = {
},
'light-pastel': {
id: 'light-pastel',
name: 'Aurora',
name: 'Bruno Light Pastel',
mode: 'light'
},
'catppuccin-latte': {

View File

@@ -258,7 +258,7 @@ const lightMonochromeTheme = {
hoverBorder: '#696969'
},
close: {
color: '212529',
color: '#212529',
bg: 'white',
border: 'white',
hoverBorder: ''

View File

@@ -286,7 +286,7 @@ const lightTheme = {
hoverBorder: '#696969'
},
close: {
color: '212529',
color: '#212529',
bg: 'white',
border: 'white',
hoverBorder: ''