mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 09:22:15 +00:00
fix(ci): the tour card's open label keys stay readable to the key check, and the road trip unused-key count lowered
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
"places.ts": 10,
|
||||
"planner.ts": 53,
|
||||
"reservations.ts": 21,
|
||||
"roadtrip.ts": 38,
|
||||
"roadtrip.ts": 36,
|
||||
"settings.ts": 37,
|
||||
"share.ts": 7,
|
||||
"shared.ts": 2,
|
||||
|
||||
@@ -8,6 +8,9 @@ import { CardOpenButton } from '../parts/CardOpen';
|
||||
import { tourTarget } from './tourLook';
|
||||
import { useTakeProposal } from './useTourRouteCard';
|
||||
|
||||
/** What "Open" says: the phone opens the tour's place on the plan, the desktop the Tours tab. */
|
||||
const OPEN_LABEL = { phoneKey: 'assistant.card.tour.openPhone', desktopKey: 'assistant.card.tour.open' } as const;
|
||||
|
||||
/**
|
||||
* The foot of a route card: "On map" always; "Plan this" on a proposed hike
|
||||
* or city walk for someone who may add to the trip, off with its reason said
|
||||
@@ -51,7 +54,7 @@ export default function TourRouteActions({
|
||||
{card.source === 'saved' && card.placeId !== null && (
|
||||
<CardOpenButton
|
||||
target={phone ? { kind: 'map', placeId: card.placeId, dayId: null } : tourTarget(card.placeId)}
|
||||
labelKey={phone ? 'assistant.card.tour.openPhone' : 'assistant.card.tour.open'}
|
||||
labelKey={phone ? OPEN_LABEL.phoneKey : OPEN_LABEL.desktopKey}
|
||||
/>
|
||||
)}
|
||||
{take.visible && take.state === 'taken' && (
|
||||
|
||||
Reference in New Issue
Block a user