mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 07:40:59 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user