mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 07:30:04 +00:00
5cfc546630
TerminalStop, BookendStop, RideBlock, BookingChips and UndatedRides leave RoadtripSidebar.tsx for their own module and are imported back by name. RIDE_DASH, DiscRow, CodeChip, TimetableClock and CheckInBadge go with them unexported, since only these rows use them, and the imports only they used leave the sidebar. The code moves as it was; the one change is that UndatedRides spells out the type of its booking callback instead of reading it off the sidebar's props, so the new module never imports from the sidebar. Nothing renders differently. New tests render each row on its own: a departure with its clock and check-in, a hire desk, a booked night that is left after check-out, a ride that is caught, missed or has nothing on its timetable, the chips a reader may and may not open, and the rides on no day.