We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c8984 commit b457045Copy full SHA for b457045
apps/web/src/components/theme-toggle.tsx
@@ -18,7 +18,9 @@ export function ThemeToggle({ className }: ThemeToggleProps) {
18
className="h-7"
19
onClick={() => setTheme(theme === "dark" ? "light" : "dark")}
20
>
21
- <Sun className="!size-[1.1rem]" />
+ {theme === "dark" ? (
22
+ <Sun className="!size-[1.1rem]" />
23
+ ) : (<Moon className="!size[1.1rem]" />)}
24
<span className="sr-only">{theme === "dark" ? "Light" : "Dark"}</span>
25
</Button>
26
);
0 commit comments