Skip to content

Commit 796a33a

Browse files
committed
tidy up
1 parent 334b3b4 commit 796a33a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/storage/defaultDashboard.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,6 @@ export const defaultDashboard: DashboardLayout = {
9292
],
9393
generalSettings: {
9494
fontSize: 'sm',
95+
colorPalette: 'default',
9596
},
9697
};

src/frontend/components/Settings/sections/GeneralSettings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const FONT_SIZE_PRESETS = {
99
xl: 'Extra Large',
1010
};
1111

12-
const COLOR_THEME_PRESETS = {
12+
const COLOR_THEME_PRESETS: Record<string, string> = {
1313
default: 'Slate (default)',
1414
black: 'Black',
1515
};
@@ -111,7 +111,7 @@ export const GeneralSettings = () => {
111111
<div className="flex items-center justify-between">
112112
<h3 className="text-lg font-medium text-slate-200">Color Theme</h3>
113113
<div className="flex items-center gap-2">
114-
<span className="text-sm text-slate-300">{COLOR_THEME_PRESETS[settings.colorPalette as keyof typeof COLOR_THEME_PRESETS ?? 'default']}</span>
114+
<span className="text-sm text-slate-300">{COLOR_THEME_PRESETS[settings.colorPalette ?? 'default']}</span>
115115
</div>
116116
</div>
117117

0 commit comments

Comments
 (0)