diff options
| author | Copilot <198982749+Copilot@users.noreply.github.com> | 2025-11-17 23:39:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-17 23:39:08 +0100 |
| commit | 276e73412abef28c222c52a84334d49f5e414f3c (patch) | |
| tree | 8b7ae07eafa53f9efc5884e4f0696e6077266f48 /src/frontend/app/routes/estimates-$id.tsx | |
| parent | 36d982fb3b01fd8181b216b57fba2c42e9404d1f (diff) | |
Use consolidated data API in map sheet with shared card component (#100)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com>
Co-authored-by: Ariel Costas Guerrero <ariel@costas.dev>
Diffstat (limited to 'src/frontend/app/routes/estimates-$id.tsx')
| -rw-r--r-- | src/frontend/app/routes/estimates-$id.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/frontend/app/routes/estimates-$id.tsx b/src/frontend/app/routes/estimates-$id.tsx index 4efa797..e4006ef 100644 --- a/src/frontend/app/routes/estimates-$id.tsx +++ b/src/frontend/app/routes/estimates-$id.tsx @@ -38,7 +38,7 @@ interface ErrorInfo { const loadData = async ( region: RegionId, - stopId: string, + stopId: string ): Promise<Estimate[]> => { const regionConfig = getRegionConfig(region); const resp = await fetch(`${regionConfig.estimatesEndpoint}?id=${stopId}`, { @@ -56,7 +56,7 @@ const loadData = async ( const loadTimetableData = async ( region: RegionId, - stopId: string, + stopId: string ): Promise<ScheduledTable[]> => { const regionConfig = getRegionConfig(region); @@ -72,7 +72,7 @@ const loadTimetableData = async ( headers: { Accept: "application/json", }, - }, + } ); if (!resp.ok) { @@ -201,7 +201,7 @@ export default function Estimates() { StopDataProvider.pushRecent(region, parseInt(params.id ?? "")); setFavourited( - StopDataProvider.isFavourite(region, parseInt(params.id ?? "")), + StopDataProvider.isFavourite(region, parseInt(params.id ?? "")) ); }, [params.id, region, loadEstimatesData, loadTimetableDataAsync]); @@ -323,7 +323,7 @@ export default function Estimates() { onRetry={loadEstimatesData} title={t( "errors.estimates_title", - "Error al cargar estimaciones", + "Error al cargar estimaciones" )} /> ) : data ? ( |
