Skip to content

[BUG] fix: remove duplicate React imports in ThemeToggle #1234

@ask-z4ch

Description

@ask-z4ch

Description

src/components/ThemeToggle.tsx imports useEffect and useState from "react" on both line 3 and line 5, causing a compilation error:

Steps to Reproduce

  1. Run bun run build
  2. Build fails with duplicate identifier error

Fix

Remove the duplicate import on line 5 (or line 3).

Additional Context

Discovered while working on issue #1227.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctlytype:bugBug fix

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions