airbnb/caravel

View on GitHub
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberPeriodOverPeriod/useOverflowDetection.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useOverflowDetection has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useOverflowDetection = (flexGap: number) => {
  const symbolContainerRef = useRef<HTMLDivElement>(null);
  const wrapperRef = useRef<HTMLDivElement>(null);
  const [isOverflowing, setIsOverflowing] = useState(false);

    There are no issues that match your filters.

    Category
    Status