nexxtway/react-rainbow

View on GitHub
src/components/Calendar/doubleCalendar/hooks/useMoveFocusedDay.js

Summary

Maintainability
A
1 hr
Test Coverage

Function useMoveFocusedDayFunction has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function useMoveFocusedDayFunction(focusedDate, currentMonth, minDate, maxDate) {
    return useCallback(
        increment => {
            const { minCalendarDate, maxCalendarDate } = getCalendarBounds(minDate, maxDate);
            const nextFocusedDate = addDays(focusedDate, increment);
Severity: Minor
Found in src/components/Calendar/doubleCalendar/hooks/useMoveFocusedDay.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status