+
+ }
+ onClick={handlePreviousYearClick}
+ disabled={!shouldDisablePreviousButton}
+ />
+ }
+ onClick={handlePreviousMonth}
+ disabled={!shouldDisablePreviousButton}
+ />
+
+
+ }
+ onClick={handleNextMonth}
+ disabled={!shouldDisableNextButton}
+ />
+ }
+ onClick={handleNextYearClick}
+ disabled={!shouldDisableNextButton}
+ />
+
+
+ );
+};
diff --git a/packages/react-components/src/components/DatePicker/helpers.ts b/packages/react-components/src/components/DatePicker/helpers.ts
index 55a58d21e..0beb815ba 100644
--- a/packages/react-components/src/components/DatePicker/helpers.ts
+++ b/packages/react-components/src/components/DatePicker/helpers.ts
@@ -1,13 +1,4 @@
-import cx from 'clsx';
-import {
- isAfter,
- isSameDay,
- isSameMonth,
- subMonths,
- differenceInCalendarDays,
-} from 'date-fns';
-import { Modifiers } from 'react-day-picker';
-import { ClassNames } from 'react-day-picker/types/ClassNames';
+import { isAfter, isSameDay, isSameMonth, subMonths } from 'date-fns';
import {
IRangeDatePickerProps,
@@ -15,10 +6,6 @@ import {
IRangeDatePickerOption,
} from './types';
-import styles from './DatePicker.module.scss';
-
-const baseClass = 'date-picker';
-
export const isDateWithinRange = (
date: Date,
range: { from?: Date; to?: Date }
@@ -54,38 +41,6 @@ export const calculateDatePickerMonth = (
return initialToDate;
};
-export const getRangeDatePickerModifiers = (
- from?: Date,
- to?: Date
-): Partial