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 --- .../Stops/ConsolidatedCirculationList.tsx | 39 +++------------------- 1 file changed, 5 insertions(+), 34 deletions(-) (limited to 'src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx') diff --git a/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx b/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx index aae9b05..4ee296d 100644 --- a/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx +++ b/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx @@ -138,7 +138,7 @@ export const ConsolidatedCirculationList: React.FC = ({ ); return ( -
+ <>
{t("estimates.caption", "Estimaciones de llegadas a las {{time}}", { time: dataDate?.toLocaleTimeString(), @@ -150,7 +150,7 @@ export const ConsolidatedCirculationList: React.FC = ({ {t("estimates.none", "No hay estimaciones disponibles")}
) : ( -
+ <> {sortedData.map((estimate, idx) => { const displayMinutes = estimate.realTime?.minutes ?? estimate.schedule?.minutes ?? 0; @@ -194,44 +194,15 @@ export const ConsolidatedCirculationList: React.FC = ({ estimate.realTime && estimate.realTime.distance >= 0 && <> · } - {delayText} - + {delayText}
- - {/*
- - {delayText && ( - <> - {t("estimates.bus_is", "Bus is")} {delayText}.{" "} - - )} - - - {estimate.schedule ? ( - <> - {t("estimates.service", "Service")}{" "} - {parseServiceId(estimate.schedule.serviceId)} - {", "} - {t("estimates.trip", "trip")}{" "} - {getTripIdDisplay(estimate.schedule.tripId)} - - ) : ( - <> - {t( - "estimates.unknown_service", - "Unknown service. It may be a reinforcement or the service has a different name than planned.", - )} - - )} - -
*/} ); })} - + )} - + ); }; -- cgit v1.3