File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export const Header = () => {
2323 height = { 50 }
2424 priority
2525 src = { theme === "dark" ? LogoDarkIcon : LogoLightIcon }
26+ suppressHydrationWarning
2627 title = "Open Source @ TUM"
2728 />
2829 </ Link >
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export function ThemeToggle() {
1818 className = "text-gray-600 hover:text-gray-900 hover:bg-gray-100 dark:text-gray-300 dark:hover:text-white dark:hover:bg-slate-700"
1919 onClick = { toggleTheme }
2020 size = "sm"
21+ suppressHydrationWarning
2122 title = {
2223 theme === "dark"
2324 ? "Dunkel - Klicken für Hell"
@@ -26,9 +27,9 @@ export function ThemeToggle() {
2627 variant = "ghost"
2728 >
2829 { theme === "dark" ? (
29- < Moon className = "w-4 h-4" />
30+ < Moon className = "w-4 h-4" suppressHydrationWarning />
3031 ) : (
31- < Sun className = "w-4 h-4" />
32+ < Sun className = "w-4 h-4" suppressHydrationWarning />
3233 ) }
3334 </ Button >
3435 ) ;
You can’t perform that action at this time.
0 commit comments