Revert "Merge remote-tracking branch 'upstream/master'"

This reverts commit c4307db1b8, reversing
changes made to 5472f952d4.
This commit is contained in:
Shubham Verma 2021-10-10 09:22:18 +05:30
parent 6caff7df0e
commit 37bdf21b21
11 changed files with 486 additions and 538 deletions

View file

@ -7,7 +7,7 @@ import { useEffect } from 'react';
export default function useTheme() {
const defaultTheme =
typeof window !== 'undefined'
? window?.matchMedia('(prefers-color-scheme: dark)')?.matches
? window?.matchMedia('prefers-color-scheme: dark')?.matches
? 'dark'
: 'light'
: 'light';