Skip to content

Commit e18d175

Browse files
committed
supressHydrationwarnings for client components
1 parent 7f6e7b3 commit e18d175

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/shared/src/client/header/theme-switch.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export default function ThemeSwitch() {
1919
return (
2020
<button className={styles.themeswitch} onClick={toggle}>
2121
<Switch tag="div" />
22-
<span className="mb">{mode}</span>
22+
<span className="mb" suppressHydrationWarning>
23+
{mode}
24+
</span>
2325
</button>
2426
);
2527
}

0 commit comments

Comments
 (0)