Format TrafficInfo.js
This commit is contained in:
parent
b324250c79
commit
4e36270130
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user