diff --git a/frontend/src/passagesPanel.tsx b/frontend/src/passagesPanel.tsx index 100639d..20fc74f 100644 --- a/frontend/src/passagesPanel.tsx +++ b/frontend/src/passagesPanel.tsx @@ -1,4 +1,4 @@ -import { VoidComponent, createEffect, createResource, createSignal, ParentComponent, ParentProps, Show, useContext } from 'solid-js'; +import { VoidComponent, createEffect, createResource, createSignal, ParentComponent, ParentProps, Show, useContext, For } from 'solid-js'; import { createDateNow, getTime } from '@solid-primitives/date'; import { AnimationOptions } from '@motionone/types'; import { Motion } from "@motionone/solid"; @@ -123,18 +123,17 @@ export const PassagesPanel: PassagesPanelComponent = (props) => { return (
- {() => { - const ret = []; - for (const line of lines()) { - const byLinePassages = props.passages[line.id]; - if (byLinePassages !== undefined) { - for (const destination of Object.keys(byLinePassages)) { - ret.push(); - } - } + + {(line) => + + + {(destination) => + + } + + } - return ret; - }} +
);