diff --git a/src/routes/journey.tsx b/src/routes/journey.tsx index ac159f9..0271aa9 100644 --- a/src/routes/journey.tsx +++ b/src/routes/journey.tsx @@ -27,27 +27,13 @@ function Connection({ ); } -type Connection2 = { - /** Start and at the same time destination of the parent connection before this if this is not the first connection */ - start: string; - line: string; - headsign: string; - /** Only set if this is the last connection/leaf in the connection tree. If this is the last connection, then changes should not exist */ - destination?: string; - time: { - /** Time to change from the connection before this (parent connection). Optional because this could be the first connection */ - change?: string; - arrive: string; - depart: string; - duration: string; - }; - - /** Optional because this could be the last connection and destination is set. */ - changes?: Connection2[]; -}; -function Connection3(connection: Connection2): JSX.Element { +function TransportConnection({ + connection, +}: { + connection: Transport; +}): JSX.Element { return ( -