mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
refactor(tours): the region repository reads the status enum of its entity, unused exports go
PaddleRegionsRepository types and writes the status through the generated PaddleRegionsStatus instead of a copy of its four values; the paint tokens, a fact key type and a minutes input stay private to their modules, the wind test pins its 502 text, and the planner page's size entry follows it down.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
"src/mobile/screens/admin/MAdminPluginsPanel.tsx": 1507,
|
||||
"src/pages/JourneyDetailPage.test.tsx": 4030,
|
||||
"src/pages/LoginPage.tsx": 1348,
|
||||
"src/pages/TripPlannerPage.tsx": 1147,
|
||||
"src/pages/TripPlannerPage.tsx": 1142,
|
||||
"src/pages/atlas/useAtlas.ts": 1287,
|
||||
"src/pages/tripPlanner/useTripPlanner.roadtrip.test.tsx": 3518,
|
||||
"src/pages/tripPlanner/useTripPlanner.test.tsx": 3309,
|
||||
|
||||
@@ -36,7 +36,7 @@ export function PaddleRolePill({ role }: { role: PaddleRole }) {
|
||||
* whole number of minutes in range is dropped on leaving the field, and the
|
||||
* value before it stays.
|
||||
*/
|
||||
export function MinutesInput({
|
||||
function MinutesInput({
|
||||
label,
|
||||
value,
|
||||
placeholder,
|
||||
|
||||
@@ -26,7 +26,7 @@ export const OBSTACLE_FACT_KEYS = [
|
||||
'fee',
|
||||
'operator',
|
||||
] as const;
|
||||
export type ObstacleFactKey = (typeof OBSTACLE_FACT_KEYS)[number];
|
||||
type ObstacleFactKey = (typeof OBSTACLE_FACT_KEYS)[number];
|
||||
|
||||
/** The access values the card puts into words; any other value is shown as OSM has it. */
|
||||
export const KNOWN_ACCESS_VALUES = ['yes', 'no', 'private', 'permissive', 'designated'] as const;
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useMapPaint } from '../../Map/mapPaint';
|
||||
* reads them resolved (`usePaddlePaint`); markup on the page takes the CSS
|
||||
* variable itself (`paddleKindCss`), which follows the theme on its own.
|
||||
*/
|
||||
export const PADDLE_PAINT_TOKENS = {
|
||||
const PADDLE_PAINT_TOKENS = {
|
||||
obstacle: '--map-paddle-obstacle',
|
||||
access: '--map-paddle-access',
|
||||
landing: '--map-paddle-landing',
|
||||
|
||||
Reference in New Issue
Block a user