mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
fix scroll indicator and download button
This commit is contained in:
1 parent
a783791513
commit
f1d249061e
2 files changed
+8
-7
No files matched your search
@@ -14,7 +14,7 @@ const ThemeContext = createContext<ThemeContextValue | undefined>(undefined)
|
||||
const STORAGE_KEY = 'portfolio-theme'
|
||||
|
||||
function getSystemTheme(): 'dark' | 'light' {
|
||||
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
|
||||
return window.matchMedia('(prefers-color-scheme: light)').matches ? 'dark' : 'light'
|
||||
}
|
||||
|
||||
function getStoredTheme(): Theme {
|
||||
|
||||
Reference in new issue
Block a user