refac: code style

This commit is contained in:
Danny Liu committed 2024-03-27 16:19:02 -07:00
1 parent dfeadf9595
commit cf44209730
1 file changed
+1 -5
@@ -91,11 +91,7 @@
});
const applyTheme = (_theme: string) => {
let themeToApply = _theme;
if (themeToApply.includes('oled')) {
themeToApply = 'dark';
}
let themeToApply = _theme === 'oled-dark' ? 'dark' : _theme;
if (_theme === 'system') {
themeToApply = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';