diff --git a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step-scheduling.tsx b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step-scheduling.tsx index a17fac477..3a989e60c 100644 --- a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step-scheduling.tsx +++ b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step-scheduling.tsx @@ -1,40 +1,39 @@ +import { api } from "@/services/api"; +import type { Freight } from "@edr/types"; import { Box, Button, Card, Group, + Modal, Stack, Text, - useMantineTheme, - Modal, - SimpleGrid, + useMantineTheme } from "@mantine/core"; -import { UseFormReturn } from "react-hook-form"; -import { BookingFormInputValues, BookingFormValues } from "./schema"; +import { useQuery } from "@tanstack/react-query"; import { + addMonths, + eachDayOfInterval, + endOfMonth, + endOfWeek, + format, + isSameMonth, + isToday, + startOfMonth, + startOfWeek, +} from "date-fns"; +import { + Calendar as CalendarIcon, + Check, ChevronLeft, ChevronRight, - Check, - Train, - Route, Package, - Calendar as CalendarIcon, + Route, + Train, } from "lucide-react"; -import type { Freight } from "@edr/types"; import React, { useMemo, useState } from "react"; -import { useQuery } from "@tanstack/react-query"; -import { api } from "@/services/api"; -import { - format, - startOfMonth, - endOfMonth, - startOfWeek, - endOfWeek, - eachDayOfInterval, - isToday, - isSameMonth, - addMonths, -} from "date-fns"; +import { UseFormReturn } from "react-hook-form"; +import { BookingFormInputValues, BookingFormValues } from "./schema"; interface StepSchedulingProps { form: UseFormReturn; @@ -455,7 +454,7 @@ interface DayCellProps { onDayClick: (day: DayData) => void; } -function DayCell({ day: d, selectedScheduleId, onDayClick, onSelectSchedule }: DayCellProps) { +function DayCell({ day: d, onDayClick, }: DayCellProps) { const theme = useMantineTheme(); if (!d.isCurrentMonth) {