Skip to content

Commit

Permalink
fix breaking theme selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfbrito committed Aug 19, 2024
1 parent 99837d7 commit ae74185
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui/components/Shell/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export const Shell = () => {
)
);
console.log(server?.themeAppearance);
if (server?.themeAppearance === 'auto') {
return setCurrentTheme(machineTheme as Themes);
}
return setCurrentTheme(server?.themeAppearance as Themes);
}
console.log(machineTheme);
Expand All @@ -69,7 +72,7 @@ export const Shell = () => {
<TooltipProvider>
<PaletteStyleTag
theme={currentTheme}
// selector='.rcx-sidebar--main'
selector=':root'
// tagId='sidebar-palette'
/>
<GlobalStyles />
Expand Down

0 comments on commit ae74185

Please sign in to comment.