imaginerio/imaginerioNext

View on GitHub
components/Legend/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function Legend has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const Legend = () => {
  const { locale, query } = useRouter();
  const [{ year, drawSearch, highlightedFeature }] = useImages();
  const [legendOpen, setLegendOpen] = useState(Boolean(query.feature));
  const [searchResultsActive, setSearchResultsActive] = useState(Boolean(query.feature));
Severity: Minor
Found in components/Legend/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status