Fixed some stuff
This commit is contained in:
parent
ad2b4c81c6
commit
0aa7116fd3
1 changed files with 8 additions and 16 deletions
|
@ -159,18 +159,14 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
||||||
fontFamily,
|
fontFamily,
|
||||||
fontSize,
|
fontSize,
|
||||||
selectedTheme,
|
selectedTheme,
|
||||||
faqSettings: {
|
faqBackgroundColor,
|
||||||
faqBackgroundColor,
|
faqHeadingColor,
|
||||||
faqHeadingColor,
|
faqItemBackgroundColor,
|
||||||
faqItemBackgroundColor,
|
faqItemHeadingColor,
|
||||||
faqItemHeadingColor,
|
faqItemTextColor,
|
||||||
faqItemTextColor,
|
faqItemHoverBackgroundColor,
|
||||||
faqItemHoverBackgroundColor,
|
popupBackgroundColor,
|
||||||
},
|
overlayTextColor,
|
||||||
popupSettings: {
|
|
||||||
popupBackgroundColor,
|
|
||||||
overlayTextColor,
|
|
||||||
},
|
|
||||||
primaryColor,
|
primaryColor,
|
||||||
secondaryColor,
|
secondaryColor,
|
||||||
accentColor,
|
accentColor,
|
||||||
|
@ -317,8 +313,6 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
||||||
const flattenedSettings = {
|
const flattenedSettings = {
|
||||||
...settings.userPreferences,
|
...settings.userPreferences,
|
||||||
...settings.theme,
|
...settings.theme,
|
||||||
...settings.theme.faqSettings,
|
|
||||||
...settings.theme.popupSettings,
|
|
||||||
...settings.apiKeys,
|
...settings.apiKeys,
|
||||||
...settings.generalSettings,
|
...settings.generalSettings,
|
||||||
};
|
};
|
||||||
|
@ -329,8 +323,6 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
||||||
}, [
|
}, [
|
||||||
...Object.values(settings.userPreferences),
|
...Object.values(settings.userPreferences),
|
||||||
...Object.values(settings.theme),
|
...Object.values(settings.theme),
|
||||||
...Object.values(settings.theme.faqSettings),
|
|
||||||
...Object.values(settings.theme.popupSettings),
|
|
||||||
...Object.values(settings.apiKeys),
|
...Object.values(settings.apiKeys),
|
||||||
...Object.values(settings.generalSettings),
|
...Object.values(settings.generalSettings),
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue