[frontend]: Fix Luas line colouring
This commit is contained in:
@ -4,7 +4,7 @@ import Cookies from "js-cookie";
|
|||||||
|
|
||||||
import Navbar from "./components/Navbar";
|
import Navbar from "./components/Navbar";
|
||||||
import Statistics from "./components/Statistics.jsx";
|
import Statistics from "./components/Statistics.jsx";
|
||||||
import Help from "./components/Help.jsx";
|
import Helpt from "./components/Help.jsx";
|
||||||
|
|
||||||
import Sidebar from "./components/Sidebar";
|
import Sidebar from "./components/Sidebar";
|
||||||
import MapComponent from "./components/MapComponent";
|
import MapComponent from "./components/MapComponent";
|
||||||
@ -341,13 +341,13 @@ function App() {
|
|||||||
let luasLine;
|
let luasLine;
|
||||||
switch (item.luasStopLineID) {
|
switch (item.luasStopLineID) {
|
||||||
case "1":
|
case "1":
|
||||||
luasLine = "Green Line";
|
|
||||||
icon += "Green";
|
|
||||||
break;
|
|
||||||
case "2":
|
|
||||||
luasLine = "Red Line";
|
luasLine = "Red Line";
|
||||||
icon += "Red";
|
icon += "Red";
|
||||||
break;
|
break;
|
||||||
|
case "2":
|
||||||
|
luasLine = "Green Line";
|
||||||
|
icon += "Green";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
luasLine = "N/A";
|
luasLine = "N/A";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user