mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 21:46:49 +00:00
da37f3618d
The plan view and the tour planner view each drew the left panel's tab in full, and the place inspector and the tour dialog each listed the same props twice, once beside the panels and once in the phone-width sheet. LeftPanelTab, a small presentational component at the bottom of TripPlannerPage.tsx, now draws the tab for both views. It stays in the page file so the physical left and right offsets keep being counted there. The tour planner's tab passes `announced`, which keeps its aria-expanded and its focus ring; the plan view's tab still has neither. The page body now builds selectedPlaceProps (what the inspector and the tour dialog both take), placeInspectorProps and tourDetailProps once and spreads them. What differs stays at each call site: the desktop inspector's onOpenBooking and panel widths, the sheet's edit and delete closing the sheet, the desktop tour dialog's non-modal focus return and widths, and canEdit and canAssign on every tour dialog.