airbnb/caravel

View on GitHub
superset-frontend/src/components/Chart/DrillBy/useDisplayModeToggle.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function useDisplayModeToggle has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useDisplayModeToggle = () => {
  const [drillByDisplayMode, setDrillByDisplayMode] = useState<DrillByType>(
    DrillByType.Chart,
  );

    There are no issues that match your filters.

    Category
    Status