Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Carpini committed Mar 10, 2024
1 parent b521ca8 commit 9e0e9a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/theme-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { Button } from "@/components/ui/button"
import { Icons } from "@/components/icons"

export function ThemeToggle() {
const { theme } = useTheme()
const { setTheme } = useTheme()
const { theme, setTheme } = useTheme()

const handleToggle = React.useCallback(() => {
setTheme(theme === "light" ? "dark" : "light")
Expand Down

0 comments on commit 9e0e9a8

Please sign in to comment.