Skip to content

Commit

Permalink
fix(ThemeToggle): remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Jul 12, 2024
1 parent afa804e commit 2aecad4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/v2/components/ThemeToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ToggleGroup, ToggleGroupItem } from "@/components/ui/ToggleGroup"
import { useColorMode } from "@chakra-ui/react"
import { Desktop, Moon, Sun } from "@phosphor-icons/react/dist/ssr"
import { useTheme } from "next-themes"
import { useIsClient, useLocalStorage } from "usehooks-ts"
import { useIsClient } from "usehooks-ts"

export function ThemeToggle() {
const { setTheme, theme } = useTheme()
Expand All @@ -22,7 +22,6 @@ export function ThemeToggle() {
value={chakraColorMode || theme}
onValueChange={(selected) => {
if (selected) {
console.log("selected", selected)
setTheme(selected)
if (typeof setChakraColorMode === "function") setChakraColorMode(selected)
}
Expand Down

0 comments on commit 2aecad4

Please sign in to comment.