feat/analytics #9
@ -18,6 +18,7 @@ export function ThemeProvider(props: ThemeProviderProps) {
|
|||||||
rootElement.classList.toggle("light", theme === "light");
|
rootElement.classList.toggle("light", theme === "light");
|
||||||
|
|
||||||
if (cookies.consent.customization) {
|
if (cookies.consent.customization) {
|
||||||
|
console.log(`ThemeProvider: ${theme}`);
|
||||||
// TODO: update the theme in the cookies
|
// TODO: update the theme in the cookies
|
||||||
}
|
}
|
||||||
}, [theme]);
|
}, [theme]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user