diff --git a/js/views/lines/LineList.jsx b/js/views/lines/LineList.jsx
index 2c51b16d..4da9fc3d 100644
--- a/js/views/lines/LineList.jsx
+++ b/js/views/lines/LineList.jsx
@@ -18,12 +18,9 @@ class LineList extends React.Component {
loading: true,
meta: {},
error: null,
- lines: undefined,
groups: [],
- colors: {},
icons: {},
groupShow: {},
- friendlyNames: {},
}
componentDidMount() {
@@ -66,26 +63,12 @@ class LineList extends React.Component {
data.groups.forEach(group => {
groupShow[group.name] = ''
})
- const {
- meta,
- lines,
- colors,
- icons,
- groups,
- operators,
- friendlyNames,
- friendlyNumbers,
- } = data
+ const { meta, icons, groups } = data
this.setState({
meta,
- lines,
- colors,
icons,
groups,
- operators,
- friendlyNames,
- friendlyNumbers,
groupShow,
loading: false,
})
@@ -149,7 +132,8 @@ class LineList extends React.Component {
>
{item.routeLongName}
- {icons[item] === undefined ? (
+ {icons[`${item.agencyId}/${item.routeShortName}`] ===
+ undefined ? (
)}
diff --git a/js/views/station/Station.jsx b/js/views/station/Station.jsx
index d9a1a583..e2727769 100644
--- a/js/views/station/Station.jsx
+++ b/js/views/station/Station.jsx
@@ -350,7 +350,6 @@ class Station extends React.Component {
name = name.replace(' Train Station', '')
name = name.replace(' Ferry Terminal', '')
name = name.replace('- Cable Car Station', '')
- name = name.replace(' Station', '')
return name
}
@@ -421,11 +420,13 @@ class Station extends React.Component {
route_color: routeColor,
route_id: routeId,
route_text_color: routeTextColor,
+ route_icon: routeIcon,
} = item[0]
return (
{
export const TripItem = ({
routeShortName,
+ routeIcon,
color = headerColor,
textColor = '#fff',
direction,
@@ -92,9 +93,19 @@ export const TripItem = ({
-
- {routeShortName}
-
+ {routeIcon ? (
+
+
+
+ ) : (
+
+ {routeShortName}
+
+ )}