aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-07 12:43:18 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-07 12:43:18 +0100
commit4420def7411a053e930b44117e2bf63625d824dc (patch)
treebfe02088318210fe2c9a2928d6afedc39cb88e45 /src/frontend/app/routes
parent86b922c1853110981d8df985a183cb43690c575d (diff)
Make "stops" page be the home (renaming only)
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.tsx5
-rw-r--r--src/frontend/app/routes/settings.tsx2
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("/");
}
};