aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/map/StopSummarySheet.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2026-02-11 18:18:13 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2026-02-11 18:18:13 +0100
commitf3a8efbacf185638cacea0693824d9de894c89b3 (patch)
treec7bc56f74a8738e09963656895448df50df39417 /src/frontend/app/components/map/StopSummarySheet.tsx
parent58d309b69bcc80a215c4fd6f38044b820d4f3674 (diff)
refactor: Remove unused logging and streamline stop data handling in map and processor components
Diffstat (limited to 'src/frontend/app/components/map/StopSummarySheet.tsx')
-rw-r--r--src/frontend/app/components/map/StopSummarySheet.tsx11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/frontend/app/components/map/StopSummarySheet.tsx b/src/frontend/app/components/map/StopSummarySheet.tsx
index 7024f41..7b4dd7b 100644
--- a/src/frontend/app/components/map/StopSummarySheet.tsx
+++ b/src/frontend/app/components/map/StopSummarySheet.tsx
@@ -18,11 +18,6 @@ export interface StopSheetProps {
stopCode?: string;
stopFeed?: string;
name: string;
- lines: {
- line: string;
- colour?: string;
- textColour?: string;
- }[];
};
}
@@ -57,10 +52,10 @@ export const StopSummarySheet: React.FC<StopSheetProps> = ({
</div>
<div className={`flex flex-wrap flex-row gap-2`}>
- {stop.lines.map((lineObj) => (
+ {data?.routes.map((lineObj) => (
<LineIcon
- key={lineObj.line}
- line={lineObj.line}
+ key={lineObj.shortName}
+ line={lineObj.shortName}
mode="pill"
colour={lineObj.colour}
textColour={lineObj.textColour}