mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 00:43:15 +00:00
b460cfd9a7
Clears the client lint ratchet: helpers move to sibling .ts files for react-refresh, complex render paths get small helpers, floating promises are voided, the stage rail lets a stale request go during render, and the collections page reads the active list's tours and rights in ActiveCollectionTours. StageNumber is no longer exported.
7 lines
292 B
TypeScript
7 lines
292 B
TypeScript
import type { TourPackingLink } from '@trek/shared';
|
|
|
|
/** The name of what the tour points at: a category by its own name, otherwise the whole list. */
|
|
export function linkName(link: TourPackingLink, t: (key: string) => string): string {
|
|
return link.category ?? t('tours.packing.whole');
|
|
}
|