chore(tours): format the ski and winter files

This commit is contained in:
Maurice
2026-10-20 18:41:55 +02:00
parent be6702f3ab
commit 69df85bfa2
9 changed files with 25 additions and 25 deletions
@@ -136,11 +136,7 @@ export function useGpxConversion(planner: TourPlannerController) {
* discipline is offered too, and the planner asks for the discipline before it saves.
* A ride (HOR-01) never: no router plans one, and walking it again on foot would be no ride.
*/
available:
tour !== null &&
tour.tour_type !== 'horse' &&
(track?.length ?? 0) >= 2 &&
planner.canEdit,
available: tour !== null && tour.tour_type !== 'horse' && (track?.length ?? 0) >= 2 && planner.canEdit,
difficulty,
/** The import is a paddle or a ski tour: its version is drawn with straight legs, not routed. */
paddle: drawn,
@@ -69,13 +69,7 @@ export function useTourStageLayers(
() => toggleMapOverlay(PISTE_OVERLAY.id, pistesShown),
[toggleMapOverlay, pistesShown]
);
const pistes = useTourRasterOverlay(
PISTE_OVERLAY,
offersPistes,
pistesShown,
togglePistes,
mapZoom
);
const pistes = useTourRasterOverlay(PISTE_OVERLAY, offersPistes, pistesShown, togglePistes, mapZoom);
const overlays = useMemo(
() => [...(offersSeamarks ? [seamarks] : []), ...(offersPistes ? [pistes] : [])],
[offersSeamarks, seamarks, offersPistes, pistes]