File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
frontend/components/Settings/sections Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -92,5 +92,6 @@ export const defaultDashboard: DashboardLayout = {
9292 ] ,
9393 generalSettings : {
9494 fontSize : 'sm' ,
95+ colorPalette : 'default' ,
9596 } ,
9697} ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments