Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastoloza committed Jun 13, 2024
1 parent 8c0ee1a commit 6ed942c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/ColorModeToggleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ export default function ColorModeToggleButton() {
if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
toggleColorMode();
}
});
}, []);

let isLightMode = colorMode === "light";
const isLightMode = colorMode === "light";
return (
<>
<ColorModeScript initialColorMode="system"/>
<ColorModeScript initialColorMode={colorMode}/>
<TooltipButton
onClick={toggleColorMode}
label={"Toggle color mode"}
tooltipLabel={"Toggle color mode"}
label="Toggle color mode"
tooltipLabel="Toggle color mode"
icon={isLightMode ? <MoonIcon/> : <SunIcon/>}
/>
</>
Expand Down

0 comments on commit 6ed942c

Please sign in to comment.