fix(tours): export only what is imported, and keep the planner page at its size

This commit is contained in:
Maurice
2026-10-19 17:00:21 +02:00
parent ce07c4dc72
commit 75d8351fec
6 changed files with 4 additions and 9 deletions
@@ -267,7 +267,7 @@ function Preview({ library }: { library: TourLibrary }) {
* list on the left, the chosen tour on the right; the copy is made only by the
* button in its foot.
*/
export function TourLibraryDialog({ library }: { library: TourLibrary }) {
function TourLibraryDialog({ library }: { library: TourLibrary }) {
const { t } = useTranslation();
const labelId = useId();
if (!library.open) return null;
@@ -116,5 +116,3 @@ export function tourPlannerFacts(input: TourPlannerFactsInput) {
},
};
}
export type TourPlannerFacts = ReturnType<typeof tourPlannerFacts>;
@@ -66,5 +66,3 @@ export function useTourRevisionGuard(initial: number | null = null) {
return { base, baseRef, conflict, remote, adopt, notice, refuse, takeOver, dismissConflict, dismissRemote };
}
export type TourRevisionGuard = ReturnType<typeof useTourRevisionGuard>;
@@ -16,7 +16,7 @@ import type { TourPlannerController } from '../planner/useTourPlanner';
/** What is ticked when a type is searched for the first time: the three most asked. */
const STARTING_CATEGORIES = (type: PlannableTourType) => TOUR_POI_CATEGORIES_BY_TYPE[type].slice(0, 3);
export const DEFAULT_CORRIDOR_M = 500;
const DEFAULT_CORRIDOR_M = 500;
type SearchStatus = 'idle' | 'loading' | 'ready' | 'error' | 'offline';