diff --git a/assets/src/components/detours/diversionPage.tsx b/assets/src/components/detours/diversionPage.tsx index f4b5181a8..74e0abde4 100644 --- a/assets/src/components/detours/diversionPage.tsx +++ b/assets/src/components/detours/diversionPage.tsx @@ -49,6 +49,10 @@ const displayFieldsFromRouteAndPattern = ( return { routeName, routeDirection, routeOrigin, routeDescription, shape } } +const parseIntoDirectionsList = (directions: string) => { + return directions.split("\n").map((direction) => ({ instruction: direction })) +} + interface DiversionPageFunctions { onClose: () => void } @@ -356,7 +360,12 @@ export const DiversionPage = ({ return (