Skip to content

Commit

Permalink
fix(ui): update queryTheme when select a new theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Nov 25, 2023
1 parent 88aa8ec commit 5ab9c12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/header/theme-menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export function ThemeMenu() {

function handleTheme(newTheme: Theme) {
setTheme(newTheme)
setQueryTheme(newTheme)
localStorage.setItem('theme', newTheme)
}

Expand Down

0 comments on commit 5ab9c12

Please sign in to comment.