mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-11-15 01:25:25 +01:00
test fix
This commit is contained in:
parent
c62ac036ec
commit
88c164a8a7
@ -39,7 +39,7 @@ export default function useDarkMode() {
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
if (!isClient) return
|
||||
if (!isClient || process.env.NODE_ENV === 'test') return
|
||||
|
||||
const darkModeQuery = window.matchMedia('(prefers-color-scheme: dark)')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user