aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx
diff options
context:
space:
mode:
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)}
/>
))}
</>