Format TrafficInfo.js

This commit is contained in:
André Wahlberg 2020-12-04 11:13:46 +01:00
parent 00208f9f86
commit 1c80983caf

View File

@ -11,33 +11,33 @@ import Departure from "../../classes/Departure.js";
class TrafficInfo extends Component { class TrafficInfo extends Component {
render() { render() {
let testStop = new Stop( let testStop = new Stop(
"Lemmingsgatan", "Lemmingsgatan",
["Läge A", "Läge B", "Läge C"], ["Läge A", "Läge B", "Läge C"],
[ [
new Departure( new Departure(
"519", "519",
"Mot Heden", "Mot Heden",
"11:59", "11:59",
"Trafikolycka vid Partille Centrum." "Trafikolycka vid Partille Centrum."
), ),
new Departure("58", "Mot Västra Eriksberg", "12:07"), new Departure("58", "Mot Västra Eriksberg", "12:07"),
] ]
); );
return ( return (
<> <>
<Header title="Trafikinfo" /> <Header title="Trafikinfo" />
<TopMenu> <TopMenu>
<StopTitle stop={testStop} /> <StopTitle stop={testStop} />
</TopMenu> </TopMenu>
<MainArea> <MainArea>
<TrafficList departures={testStop.departures} /> <TrafficList departures={testStop.departures} />
</MainArea> </MainArea>
</> </>
); );
} }
} }
export default TrafficInfo; export default TrafficInfo;