Skip to content

Commit

Permalink
update functions names
Browse files Browse the repository at this point in the history
  • Loading branch information
firehawk89 committed Jan 28, 2024
1 parent 9842559 commit 11aab80
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/ui/theme-toggler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import * as React from 'react'
export function ThemeToggler() {
const { setTheme } = useTheme()

const setLightTheme = () => setTheme('light')
const setDarkTheme = () => setTheme('dark')
const setSystemTheme = () => setTheme('system')
const setThemeLight = () => setTheme('light')
const setThemeDark = () => setTheme('dark')
const setThemeSystem = () => setTheme('system')

return (
<DropdownMenu>
Expand All @@ -28,9 +28,9 @@ export function ThemeToggler() {
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuItem onClick={setLightTheme}>Light</DropdownMenuItem>
<DropdownMenuItem onClick={setDarkTheme}>Dark</DropdownMenuItem>
<DropdownMenuItem onClick={setSystemTheme}>System</DropdownMenuItem>
<DropdownMenuItem onClick={setThemeLight}>Light</DropdownMenuItem>
<DropdownMenuItem onClick={setThemeDark}>Dark</DropdownMenuItem>
<DropdownMenuItem onClick={setThemeSystem}>System</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
)
Expand Down

0 comments on commit 11aab80

Please sign in to comment.