📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
(fix) theme
Maksim Mrug1ade66e072a9
diff --git a/app/components/Header/index.tsx b/app/components/Header/index.tsxindex 68898f4a5..fec4f91b7 100644--- a/app/components/Header/index.tsx+++ b/app/components/Header/index.tsx@@ -589,6 +589,7 @@ const Header: React.FC<IHeader> = ({ ssrTheme }): JSX.Element => {const { pathname } = useLocation()// @ts-ignoreconst buttonRef: MutableRefObject<HTMLButtonElement> = useRef<HTMLButtonElement>()+ console.log(reduxTheme, ssrTheme)const theme = isBrowser ? reduxTheme : ssrThemeconst [rawStatus, status] = useMemo(() => {diff --git a/app/redux/reducers/ui/theme.ts b/app/redux/reducers/ui/theme.tsindex 53152ca7a..52de16f0e 100644--- a/app/redux/reducers/ui/theme.ts+++ b/app/redux/reducers/ui/theme.ts@@ -35,12 +35,6 @@ const getInitialTheme = (): 'light' | 'dark' => {return lsTheme}- const userMedia = window.matchMedia('(prefers-color-scheme: dark)')- if (userMedia.matches) {- setTheme('dark')- return 'dark'- }-setTheme('light')return 'light' // light theme as the default}