mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-20 22:16:26 +00:00
chore(tours): format the ski and winter files
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user