diff --git a/client/src/components/trans-routes/RoutesDashboard.js b/client/src/components/trans-routes/RoutesDashboard.js index 26e2ff3..d5de8a9 100644 --- a/client/src/components/trans-routes/RoutesDashboard.js +++ b/client/src/components/trans-routes/RoutesDashboard.js @@ -90,7 +90,6 @@ const RoutesDashboard = () => { const [customerTypeFixing, setCustomerTypeFixing] = useState({}); const [customerSpecialNeedsFixing, setCustomerSpecialNeedsFixing] = useState({}); const [customerNoteFixing, setCustomerNoteFixing] = useState({}); - const [isFutureScheduleEditMode, setIsFutureScheduleEditMode] = useState(false); const scheduleImportProgressTimerRef = useRef(null); @@ -706,12 +705,6 @@ const RoutesDashboard = () => { const yesterday = new Date(); const tomorrow = new Date(); const isFutureScheduleSelected = moment(dateSelected).startOf('day').isAfter(moment().startOf('day')); - const shouldShowFutureEditView = isFutureScheduleSelected && isFutureScheduleEditMode; - const shouldShowReadOnlyOverview = !isFutureScheduleSelected || !isFutureScheduleEditMode; - - useEffect(() => { - setIsFutureScheduleEditMode(false); - }, [dateSelected]); const startScheduleImportProgress = (label) => { if (scheduleImportProgressTimerRef.current) { @@ -1771,7 +1764,7 @@ const RoutesDashboard = () => { {isFutureScheduleSelected &&