Skip to content

Commit 1495c4e

Browse files
authored
fix(git): show the icon matching the active theme in the toggle (#179)
1 parent 917d1e4 commit 1495c4e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/git/src/client/components/dashboard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ function ConnectionBadge() {
106106
}
107107

108108
function ThemeToggle() {
109-
const { theme, toggle } = useTheme()
109+
const { toggle } = useTheme()
110110
return (
111111
<IconButton variant="ghost" size="sm" onClick={toggle} aria-label="Toggle light/dark theme">
112-
<Icon name={theme === 'dark' ? 'i-ph-sun-duotone' : 'i-ph-moon-duotone'} className="size-4" />
112+
<Icon name="i-ph-sun-duotone dark:i-ph-moon-duotone" className="size-4" />
113113
</IconButton>
114114
)
115115
}

0 commit comments

Comments
 (0)