src/components/Calendar/doubleCalendar/hooks/useMoveFocusedDay.js
Function useMoveFocusedDayFunction
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function useMoveFocusedDayFunction(focusedDate, currentMonth, minDate, maxDate) {
return useCallback(
increment => {
const { minCalendarDate, maxCalendarDate } = getCalendarBounds(minDate, maxDate);
const nextFocusedDate = addDays(focusedDate, increment);