Skip to content

Commit

Permalink
refactor(hooks): remove unused theme in dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed Oct 3, 2024
1 parent a87ad5f commit b40cbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/use-theme/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function useTheme(defaultTheme: Theme = ThemeProps.SYSTEM) {
setTheme(e.matches ? ThemeProps.DARK : ThemeProps.LIGHT);
}
},
[theme, setTheme],
[setTheme],
);

useEffect(() => setTheme(theme), [theme, setTheme]);
Expand Down

0 comments on commit b40cbf8

Please sign in to comment.