diff options
Diffstat (limited to 'src/frontend/app/routes')
| -rw-r--r-- | src/frontend/app/routes/home.css (renamed from src/frontend/app/routes/stoplist.css) | 0 | ||||
| -rw-r--r-- | src/frontend/app/routes/home.tsx (renamed from src/frontend/app/routes/stoplist.tsx) | 3 | ||||
| -rw-r--r-- | src/frontend/app/routes/index.tsx | 5 | ||||
| -rw-r--r-- | src/frontend/app/routes/settings.tsx | 2 |
4 files changed, 3 insertions, 7 deletions
diff --git a/src/frontend/app/routes/stoplist.css b/src/frontend/app/routes/home.css index 253c0ab..253c0ab 100644 --- a/src/frontend/app/routes/stoplist.css +++ b/src/frontend/app/routes/home.css diff --git a/src/frontend/app/routes/stoplist.tsx b/src/frontend/app/routes/home.tsx index a98b2b4..88c774b 100644 --- a/src/frontend/app/routes/stoplist.tsx +++ b/src/frontend/app/routes/home.tsx @@ -1,3 +1,4 @@ +"use client"; import { useEffect, useMemo, useRef, useState, useCallback } from "react"; import StopDataProvider, { type Stop } from "../data/StopDataProvider"; import StopItem from "../components/StopItem"; @@ -5,7 +6,7 @@ import StopItemSkeleton from "../components/StopItemSkeleton"; import StopGallery from "../components/StopGallery"; import ServiceAlerts from "../components/ServiceAlerts"; import Fuse from "fuse.js"; -import "./stoplist.css"; +import "./home.css"; import { useTranslation } from "react-i18next"; import { useApp } from "../AppContext"; import { REGIONS } from "~/data/RegionConfig"; diff --git a/src/frontend/app/routes/index.tsx b/src/frontend/app/routes/index.tsx deleted file mode 100644 index 252abec..0000000 --- a/src/frontend/app/routes/index.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Navigate, redirect, type LoaderFunction } from "react-router"; - -export default function Index() { - return <Navigate to={"/stops"} replace />; -} diff --git a/src/frontend/app/routes/settings.tsx b/src/frontend/app/routes/settings.tsx index d9efa2e..d687fab 100644 --- a/src/frontend/app/routes/settings.tsx +++ b/src/frontend/app/routes/settings.tsx @@ -35,7 +35,7 @@ export default function Settings() { setRegion(pendingRegion as any); setShowModal(false); setPendingRegion(null); - navigate("/stops"); + navigate("/"); } }; |
