imaginerio/imaginerioNext

View on GitHub
components/Legend/LegendSwatches.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function LegendSwatches has 93 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const LegendSwatches = () => {
  const { locale } = useRouter();
  const [legend, setLegend] = useState(null);
  const [{ year, highlightedLayer }, dispatch] = useImages();
  const { data } = useSwr(
Severity: Major
Found in components/Legend/LegendSwatches.js - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status