aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-19 23:54:49 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-19 23:54:49 +0100
commitf030f1806255c66b86689489d24f8f5ad9b832ce (patch)
treea776e6a6670b50bb43609633cdbd1fe9857b8065 /src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx
parent3ebb062e99dbd8a63d5642d67ba4be753e61a34d (diff)
feat: Implement StopMapModal component for displaying bus stop locations with live tracking; enhance styles and add interaction features
Diffstat (limited to 'src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx')
-rw-r--r--src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx b/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx
index 047dfd4..4c2916a 100644
--- a/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx
+++ b/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx
@@ -9,12 +9,14 @@ interface RegularTableProps {
data: ConsolidatedCirculation[];
dataDate: Date | null;
regionConfig: RegionConfig;
+ onCirculationClick?: (estimate: ConsolidatedCirculation, index: number) => void;
}
export const ConsolidatedCirculationList: React.FC<RegularTableProps> = ({
data,
dataDate,
regionConfig,
+ onCirculationClick,
}) => {
const { t } = useTranslation();
@@ -43,6 +45,7 @@ export const ConsolidatedCirculationList: React.FC<RegularTableProps> = ({
key={idx}
estimate={estimate}
regionConfig={regionConfig}
+ onMapClick={() => onCirculationClick?.(estimate, idx)}
/>
))}
</>