fix(ci): the track sheet reads the distance unit as a DistanceUnit, and knip's baseline drops the type useFollowTrack no longer leaves unused

This commit is contained in:
Maurice
2026-11-08 03:00:39 +00:00
parent 2851eb7afe
commit a77ec6e225
2 changed files with 2 additions and 2 deletions
@@ -4,6 +4,7 @@ import type { FollowTrackOutcome } from '../../../../components/Roadtrip/useFoll
import { useIsWide } from '../../../../hooks/sizeClass';
import { useTranslation } from '../../../../i18n';
import { useSettingsStore } from '../../../../store/settingsStore';
import type { DistanceUnit } from '../../../../types';
import { formatDistance } from '../../../../utils/units';
import MSheet from '../../../components/MSheet';
import type { MTripSheetsProps } from '../MTripShell';
@@ -59,7 +60,7 @@ export function MRtTrackEntry({ planner, dayId }: { planner: MTripSheetsProps['p
export default function MRtTrackSheet({ planner }: MTripSheetsProps) {
const { t } = useTranslation();
const unit = useSettingsStore((s) => s.settings.distance_unit);
const unit: DistanceUnit = useSettingsStore((s) => s.settings.distance_unit) === 'imperial' ? 'imperial' : 'metric';
const large = useIsWide();
const follow = planner.followTrack;
const { dayId, busy, round, error, outcome, tracks, viaCount, current } = follow;
-1
View File
@@ -143,7 +143,6 @@
"client/src/components/Roadtrip/nightSpill.ts": 1,
"client/src/components/Roadtrip/refuelSuggestion.ts": 1,
"client/src/components/Roadtrip/roadtripModel.ts": 4,
"client/src/components/Roadtrip/useFollowTrack.ts": 1,
"client/src/components/Roadtrip/useRoadtripRoutes.ts": 3,
"client/src/components/Studio/StudioCanvas.tsx": 1,
"client/src/components/Studio/mapTiles.ts": 1,