diff --git a/apps/edr-freight-web/backoffice/src/pages/operations/FirstMilePage.tsx b/apps/edr-freight-web/backoffice/src/pages/operations/FirstMilePage.tsx index 7532e2dbf..128df06fd 100644 --- a/apps/edr-freight-web/backoffice/src/pages/operations/FirstMilePage.tsx +++ b/apps/edr-freight-web/backoffice/src/pages/operations/FirstMilePage.tsx @@ -30,7 +30,6 @@ import { TextInput, UnstyledButton, } from "@mantine/core"; -import { DateInput } from "@mantine/dates"; import { ruleEngineTable } from "@/components/ruleEngine/ruleEngineStyles"; import { QUERY_KEYS } from "@/constants/QUERY_KEYS"; @@ -331,7 +330,6 @@ const FirstMilePage = () => { const [distanceOpen, setDistanceOpen] = useState(false); const [distanceValue, setDistanceValue] = useState(""); - const [distanceDate, setDistanceDate] = useState(null); const { data: listData, isLoading } = useQuery({ queryKey: QUERY_KEYS.FIRST_MILE.list(), @@ -478,7 +476,6 @@ const FirstMilePage = () => { const openDistance = (id: string) => { setActiveId(id); setDistanceValue(""); - setDistanceDate(new Date()); setDistanceOpen(true); }; @@ -486,7 +483,6 @@ const FirstMilePage = () => { setDistanceOpen(false); setActiveId(null); setDistanceValue(""); - setDistanceDate(null); }; const handleSaveDistance = () => { @@ -1114,12 +1110,6 @@ const FirstMilePage = () => { step={0.1} decimalScale={2} /> -