feat: favorite & watch lists
This commit is contained in:
1 parent
960a7a6242
commit
8858e47d38
51 files changed
+561
-290
No files matched your search
@@ -22,6 +22,9 @@ const Provider: FC<Props> = ({ children, theme: initialTheme }) => {
|
||||
}
|
||||
|
||||
document.documentElement.setAttribute('data-mode', theme);
|
||||
document
|
||||
.querySelector('meta[name="theme-color"]')
|
||||
?.setAttribute('content', theme === 'dark' ? 'hsl(222.2 84% 4.9%)' : 'white');
|
||||
Cookies.set('theme', theme);
|
||||
}, [theme, setTheme]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user