From d51169f6411b68a226d76d2d39826904de484929 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Wed, 19 Nov 2025 15:04:55 +0100 Subject: 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. --- src/frontend/app/routes/timetable-$id.tsx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/frontend/app/routes/timetable-$id.tsx') 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 { -- cgit v1.3