Skip to content

Commit

Permalink
supressHydrationwarnings for client components
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jun 13, 2024
1 parent 7f6e7b3 commit e18d175
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/shared/src/client/header/theme-switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export default function ThemeSwitch() {
return (
<button className={styles.themeswitch} onClick={toggle}>
<Switch tag="div" />
<span className="mb">{mode}</span>
<span className="mb" suppressHydrationWarning>
{mode}
</span>
</button>
);
}

0 comments on commit e18d175

Please sign in to comment.