diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-08 01:37:10 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-08 01:37:10 +0100 |
| commit | 107295575e3a7c37911ae192baf426b0003975a4 (patch) | |
| tree | ceb528a428716d5313517a0fa72fcac3ea1360fb /src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx | |
| parent | 3b3fd2f6880eaa9170b480d41d43311925483bea (diff) | |
Refactor code structure for improved readability and maintainability; removed redundant code blocks and optimized functions.
Diffstat (limited to 'src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx')
| -rw-r--r-- | src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx | 3 |
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 088f978..ec79f1c 100644 --- a/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx +++ b/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx @@ -9,12 +9,14 @@ interface ConsolidatedCirculationListProps { data: ConsolidatedCirculation[]; onCirculationClick?: (estimate: ConsolidatedCirculation, index: number) => void; reduced?: boolean; + driver?: string; } export const ConsolidatedCirculationList: React.FC<ConsolidatedCirculationListProps> = ({ data, onCirculationClick, reduced, + driver, }) => { const { t } = useTranslation(); @@ -43,6 +45,7 @@ export const ConsolidatedCirculationList: React.FC<ConsolidatedCirculationListPr {sortedData.map((estimate, idx) => ( <ConsolidatedCirculationCard reduced={reduced} + driver={driver} key={generateKey(estimate)} estimate={estimate} onMapClick={() => onCirculationClick?.(estimate, idx)} |
