Skip to content

Commit 5775339

Browse files
committed
added recenter-route button to route card
1 parent a6a6975 commit 5775339

File tree

4 files changed

+360
-22
lines changed

4 files changed

+360
-22
lines changed

src/components/directions/route-card.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ vi.mock('./summary', () => ({
2828
summary: unknown;
2929
title: string;
3030
index: number;
31+
routeCoordinates: number[][];
3132
}) => <div data-testid={`mock-summary-${index}`}>Summary: {title}</div>,
3233
}));
3334

src/components/directions/route-card.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export const RouteCard = ({ data, index }: RouteCardProps) => {
7070
title={`${index === -1 ? 'Main Route' : 'Alternate Route #' + (index + 1)}`}
7171
summary={data.trip.summary}
7272
index={index}
73+
routeCoordinates={data.decodedGeometry ?? []}
7374
/>
7475
<Collapsible open={showManeuvers} onOpenChange={setShowManeuvers}>
7576
<div className="flex justify-between">

0 commit comments

Comments
 (0)