From 0e42e8174fd7a9fb0bfb55ccf447e45b34ab7775 Mon Sep 17 00:00:00 2001 From: bwees Date: Tue, 30 Jan 2024 17:38:17 -0600 Subject: [PATCH] add bus ID to callout (see #110) --- app/components/map/BusCallout.tsx | 4 +++- app/components/map/markers/BusMarker.tsx | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/components/map/BusCallout.tsx b/app/components/map/BusCallout.tsx index 262c353..820b069 100644 --- a/app/components/map/BusCallout.tsx +++ b/app/components/map/BusCallout.tsx @@ -10,15 +10,17 @@ interface Props { amenities: IAmenity[] tintColor: string routeName: string + busId: string } // Bus callout with amentities -const BusCallout: React.FC = ({ directionName, fullPercentage, amenities, tintColor, routeName }) => { +const BusCallout: React.FC = ({ directionName, fullPercentage, amenities, tintColor, routeName, busId }) => { return ( + {busId} diff --git a/app/components/map/markers/BusMarker.tsx b/app/components/map/markers/BusMarker.tsx index e673294..2d07a1d 100644 --- a/app/components/map/markers/BusMarker.tsx +++ b/app/components/map/markers/BusMarker.tsx @@ -33,7 +33,13 @@ const BusMarker: React.FC = ({ bus, tintColor, routeName }) => { > {/* Bus Icon on Map*/} - + ); };