diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-19 15:04:55 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-19 15:05:34 +0100 |
| commit | d51169f6411b68a226d76d2d39826904de484929 (patch) | |
| tree | 4d8a403dfcc5b17671a92b8cc1e5d71d20ed9537 /src/frontend/app/routes/timetable-$id.tsx | |
| parent | d434204860fc0409ad6343e815d0057b97ce3573 (diff) | |
feat: Add About and Favourites pages, update routing and context management
- Added new routes for About and Favourites pages.
- Implemented About page with version information and credits.
- Created Favourites page with a placeholder message for empty favourites.
- Refactored RegionConfig import paths for consistency.
- Introduced PageTitleContext to manage page titles dynamically.
- Updated various components to utilize the new context for setting page titles.
- Enhanced AppShell layout with a responsive Drawer for navigation.
- Added CSS styles for new components and pages.
- Integrated commit hash display in the About page for version tracking.
Diffstat (limited to 'src/frontend/app/routes/timetable-$id.tsx')
| -rw-r--r-- | src/frontend/app/routes/timetable-$id.tsx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/frontend/app/routes/timetable-$id.tsx b/src/frontend/app/routes/timetable-$id.tsx index 8a1cba7..c036cb3 100644 --- a/src/frontend/app/routes/timetable-$id.tsx +++ b/src/frontend/app/routes/timetable-$id.tsx @@ -1,21 +1,21 @@ -import { useEffect, useState, useRef } from "react"; -import { useParams, Link } from "react-router"; -import StopDataProvider from "../data/StopDataProvider"; import { - ArrowLeft, - Eye, - EyeOff, - ChevronUp, - ChevronDown, - Clock, + ArrowLeft, + ChevronDown, + ChevronUp, + Clock, + Eye, + EyeOff, } from "lucide-react"; +import { useEffect, useRef, useState } from "react"; +import { useTranslation } from "react-i18next"; +import { Link, useParams } from "react-router"; +import { useApp } from "~/AppContext"; +import { ErrorDisplay } from "~/components/ErrorDisplay"; import { type ScheduledTable } from "~/components/SchedulesTable"; import { TimetableSkeleton } from "~/components/TimetableSkeleton"; -import { ErrorDisplay } from "~/components/ErrorDisplay"; +import { type RegionId, getRegionConfig } from "~/config/RegionConfig"; import LineIcon from "../components/LineIcon"; -import { useTranslation } from "react-i18next"; -import { type RegionId, getRegionConfig } from "~/data/RegionConfig"; -import { useApp } from "~/AppContext"; +import StopDataProvider from "../data/StopDataProvider"; import "./timetable-$id.css"; interface ErrorInfo { |
