From f349c491284c0cb007a97c9a11220cc00adbb64f Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sat, 15 Nov 2025 17:12:12 +0100 Subject: Fix old tables, improve new styles --- src/frontend/app/routes/stops-$id.tsx | 111 ++++++++++++---------------------- 1 file changed, 37 insertions(+), 74 deletions(-) (limited to 'src/frontend/app/routes/stops-$id.tsx') diff --git a/src/frontend/app/routes/stops-$id.tsx b/src/frontend/app/routes/stops-$id.tsx index 30a8d1b..812821d 100644 --- a/src/frontend/app/routes/stops-$id.tsx +++ b/src/frontend/app/routes/stops-$id.tsx @@ -4,7 +4,6 @@ import { useTranslation } from "react-i18next"; import { useParams } from "react-router"; import { ErrorDisplay } from "~/components/ErrorDisplay"; import LineIcon from "~/components/LineIcon"; -import { PullToRefresh } from "~/components/PullToRefresh"; import { StopAlert } from "~/components/StopAlert"; import { StopMap } from "~/components/StopMapSheet"; import { ConsolidatedCirculationList } from "~/components/Stops/ConsolidatedCirculationList"; @@ -188,34 +187,10 @@ export default function Estimates() { } }; - // Show loading skeleton while initial data is loading - if (dataLoading && !data) { - return ( - -
-
-

- - - {t("common.loading")}... -

-
- -
- -
-
-
- ); - } - return ( <> -
-
+
+

)} - {(isManualRefreshing || dataLoading) && ( -
- - {t("estimates.refreshing", "Actualizando datos...")} -
- )} - {stopData && } -
-
-
- - {t("estimates.experimental_feature", "Experimental feature")} - -
- -
- {dataLoading ? ( - - ) : dataError ? ( - - ) : data ? ( - - ) : null} -
-
+
+ + {t("estimates.experimental_feature", "Experimental feature")} + +
- {/* Map showing stop and bus positions */} - {stopData && ( - ({ - line: c.line, - route: c.route, - currentPosition: c.currentPosition, - }))} +
+ {dataLoading ? ( + + ) : dataError ? ( + + ) : data ? ( + - )} + ) : null}
+ + {stopData && ( + ({ + line: c.line, + route: c.route, + currentPosition: c.currentPosition, + }))} + /> + )}
); -- cgit v1.3