Shramkoweb/Portfolio

View on GitHub
components/theme-changer/theme-changer.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function ThemeChanger has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function ThemeChanger() {
  const [mounted, setMounted] = useState(false);
  const { resolvedTheme, setTheme } = useTheme();

  useEffect(() => setMounted(true), []);
Severity: Minor
Found in components/theme-changer/theme-changer.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status