diff --git a/app/javascript/dashboard/components-next/DatePicker/DatePicker.vue b/app/javascript/dashboard/components-next/DatePicker/DatePicker.vue index a658079f0..fc9365df3 100644 --- a/app/javascript/dashboard/components-next/DatePicker/DatePicker.vue +++ b/app/javascript/dashboard/components-next/DatePicker/DatePicker.vue @@ -12,7 +12,7 @@ import { setMonth, setYear, } from 'date-fns'; -import { CALENDAR_TYPES, CALENDAR_PERIODS } from './helpers/DatePickerHelper'; +import { CALENDAR_PERIODS } from './helpers/DatePickerHelper'; import CalendarYear from './components/CalendarYear.vue'; import CalendarMonth from './components/CalendarMonth.vue'; import CalendarWeek from './components/CalendarWeek.vue'; @@ -28,7 +28,6 @@ defineProps({ const emit = defineEmits(['apply', 'clear']); -const { START_CALENDAR } = CALENDAR_TYPES; const { WEEK, MONTH, YEAR } = CALENDAR_PERIODS; const currentDate = ref(new Date()); @@ -89,11 +88,11 @@ const moveCalendar = (direction, period = MONTH) => { calendarDate.value = adjust[direction](calendarDate.value, 1); }; -const setViewMode = (_calendar, mode) => { +const setViewMode = (_type, mode) => { calendarView.value = mode; }; -const openCalendar = (index, _calendarType, period = MONTH) => { +const openCalendar = (index, _type, period = MONTH) => { calendarDate.value = period === MONTH ? setMonth(startOfMonth(calendarDate.value), index) @@ -136,31 +135,23 @@ defineExpose({ resetState });